Moved Permanently Error

Popular automatic website translation tool

Moved Permanently Error

Postby YaegerDesign » Sat Aug 31, 2013 7:22 am

We are using the following rewrite for SEO:
Code: Select all
# 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:
Here is the rewrite for GTranslate:
Code: Select all
# 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]
YaegerDesign
 
Posts: 19
Joined: Tue Jun 11, 2013 1:27 am

Re: Moved Permanently Error

Postby YaegerDesign » Sat Aug 31, 2013 6:01 pm

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.
YaegerDesign
 
Posts: 19
Joined: Tue Jun 11, 2013 1:27 am

Re: Moved Permanently Error

Postby Yana » Mon Sep 02, 2013 2:05 pm

Hi,
Nice that you found the solution yourself !
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: 4140
Joined: Thu Jan 12, 2012 6:21 pm


  • Related Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests

2GLux