Forum Archive - Moved Permanently Error

Moved Permanently Error
Aug 31, 2013 3:22 am by YaegerDesign
We are using the following rewrite for SEO: # Remove index RewriteCond %{THE_REQUEST} ^.*/index.html RewriteRule ^(.*)index.html$ http://semyx.com/$1 [R=301,L] However, all links to the home page (index.html) are getting the following error in all translations: Moved Permanently The document has moved here. Check any URL: http://semyx.com/hr/index.html http://semyx.com/it/index.html http://semyx.com/da/index.html Here is the rewrite for GTranslate: # GTranslate config RewriteRule ^([a-z]{2}|zh-CN|zh-TW)/([a-z]{2}|zh-CN|zh-TW)/(.*)$ /$1/$3 [R=301,L] RewriteRule ^([a-z]{2}|zh-CN|zh-TW)/([a-z]{2}|zh-CN|zh-TW)$ /$1/ [R=301,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([a-z]{2}|zh-CN|zh-TW)/(.*)$ /gtranslate/translate.php?lang=$1&url=$2 [L,QSA] RewriteRule ^([a-z]{2}|zh-CN|zh-TW)$ /gtranslate/translate.php?lang=$1 [L,QSA]
Re: Moved Permanently Error
Aug 31, 2013 2:01 pm by YaegerDesign
I was able to fix the issue. The trick is to make sure "index.html" is stripped from the URL BEFORE the GTranslate rewrite rules.
Re: Moved Permanently Error
Sep 2, 2013 10:05 am by Yana
Hi, Nice that you found the solution yourself !

SIMILAR TOPICS

Gtranslate: Error with numberFeb 20, 2019 1:20 amReplies: 1Post by: infact_dat
Error message and URL problemsFeb 6, 2019 11:16 amReplies: 1Post by: Kidbooo
GT doesn't work...error 404 pageJan 28, 2019 5:36 pmReplies: 1Post by: vincenzodinuzzo
Nginx 502 ErrorJan 11, 2019 2:15 pmReplies: 1Post by: mightyfineprint
Error message on click on the widgetJan 6, 2019 9:52 pmReplies: 1Post by: jmric68

Try GTranslate with a free 15 day trial