Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove trailing slashes from all URLs for SEO #65

Open
1 task
DeniseColbert opened this issue Oct 23, 2019 · 4 comments
Open
1 task

Remove trailing slashes from all URLs for SEO #65

DeniseColbert opened this issue Oct 23, 2019 · 4 comments
Assignees
Labels

Comments

@DeniseColbert
Copy link
Collaborator

DeniseColbert commented Oct 23, 2019

  • Find .htaccess file
@aboutthedash
Copy link

aboutthedash commented Oct 23, 2019

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
Copy link
Collaborator Author

@lemon-ukgen could you advise Candice on this?

@lemon-ukgen
Copy link
Collaborator

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

@PatReynolds
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants