Moved Permanently Error
Aug 31, 2013 3:22 am by YaegerDesign
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
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
Sep 2, 2013 10:05 am by Yana
Hi,
Nice that you found the solution yourself !
SIMILAR TOPICS
Gtranslate: Error with number | Feb 20, 2019 1:20 am | Replies: 1 | Post by: infact_dat |
Error message and URL problems | Feb 6, 2019 11:16 am | Replies: 1 | Post by: Kidbooo |
GT doesn't work...error 404 page | Jan 28, 2019 5:36 pm | Replies: 1 | Post by: vincenzodinuzzo |
Nginx 502 Error | Jan 11, 2019 2:15 pm | Replies: 1 | Post by: mightyfineprint |
Error message on click on the widget | Jan 6, 2019 9:52 pm | Replies: 1 | Post by: jmric68 |