[Solved] Pro: Remove trailinig slashes
Jan 11, 2013 3:46 pm by Dawn
Jan 11, 2013 3:46 pm by Dawn
Hi,
I've got again a little question. I've noticed that when an other language is selected (like englisch) when I click on the flag (and also in sitemap.txt), I get an URL like http://www.domain.com/en/. Because I everywhere else remove the trailing slash from my urls I want to do it because of SEO for this too (otherwise the site is accessible with http://www.domain.com/en/ and http://www.domain.com/en - which gives duplicate content). Is it possible to remove this trailing slash?
Best regards and big thanks anyway,
Dawn
EDIT: I've corrected the sitemap.txt manually, but this doesn't solve it with the module which shows the language selection. Perhaps can this be solves at least with a 301 redirect via .htaccess? (don't know the right rule).
Re: Pro: Remove trailinig slashes
Jan 11, 2013 5:08 pm by Yana
Jan 11, 2013 5:08 pm by Yana
Hi,
Try to use the following rule
RewriteRule ^(.*)/$ $1 [R=301]
Re: Pro: Remove trailinig slashes
Jan 15, 2013 7:03 pm by Dawn
Jan 15, 2013 7:03 pm by Dawn
Thanks a lot. I decided to use a canonical tag to improve my site and could skip with this solution a mod-rewrite solution (which makes problems with other stuff).
For me it's solved.
SIMILAR TOPICS
How to remove mobile Language Select Button transparency | Dec 5, 2018 10:06 pm | Replies: 10 | Post by: JeffTR |
Remove <h1>Original Text</h1> | Sep 18, 2015 2:21 pm | Replies: 6 | Post by: adeblath |
[SOLVED]double dropdown | Oct 26, 2017 8:26 am | Replies: 3 | Post by: danielesantosubito |
[SOLVED] NOT WORKING, HELP PLEASE! | Feb 12, 2017 4:53 pm | Replies: 5 | Post by: TSM |
Need help <SOLVED> | Feb 6, 2017 1:48 pm | Replies: 5 | Post by: blaxx |