FreeUKGen / FreeUKGenealogy

Apache License 2.0
0 stars 0 forks source link

Remove trailing slashes from all URLs for SEO #65

Open DeniseColbert opened 4 years ago

DeniseColbert commented 4 years ago
aboutthedash commented 4 years ago

I have added a line of code (line 211) to a newly created branch (Trailing-Slashes) here: https://github.com/FreeUKGen/FreeUKGenealogy/blob/Trailing-Slashes/public/.htaccess

RewriteRule ^(.+)/$ /$1 [NE,R=301,L]

Are there any guidelines in place for testing this line on a test site before committing to the live site?

I believe there are sub-domains in place where things have been tested previously? I am not sure how these are accessed?

I am not sure if this is the correct .htaccess file as there appear to be a few?

DeniseColbert commented 4 years ago

@lemon-ukgen could you advise Candice on this?

lemon-ukgen commented 3 years ago

Woah, I never saw this. Is this still an issue?

PatReynolds commented 3 years ago

Hi @lemon-ukgen not sure if it has any import, but this is for the Free UK Genealogy wordpress site.