[Solved] Pro: Remove trailinig slashes

Popular automatic website translation tool

[Solved] Pro: Remove trailinig slashes

Postby Dawn » Fri Jan 11, 2013 7:46 pm

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).
Last edited by Dawn on Tue Jan 15, 2013 11:04 pm, edited 1 time in total.
Dawn
 
Posts: 19
Joined: Sat Dec 22, 2012 11:20 pm

Re: Pro: Remove trailinig slashes

Postby Yana » Fri Jan 11, 2013 9:08 pm

Hi,
Try to use the following rule
RewriteRule ^(.*)/$ $1 [R=301]
Regards,

Yana Ghahramanyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Yana
 
Posts: 4135
Joined: Thu Jan 12, 2012 6:21 pm

Re: Pro: Remove trailinig slashes

Postby Dawn » Tue Jan 15, 2013 11:03 pm

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.
Dawn
 
Posts: 19
Joined: Sat Dec 22, 2012 11:20 pm


  • Related Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests

2GLux