de/index.php not found

Popular automatic website translation tool

de/index.php not found

Postby peterdejong » Tue Mar 05, 2013 12:09 pm

I get this for each language and I get each time a 404 error.
My website does a lot of reference to /index.php to get back to the homepage.

How to fix?
peterdejong
 
Posts: 12
Joined: Wed Feb 27, 2013 12:00 pm

Re: de/index.php not found

Postby Yana » Wed Mar 06, 2013 1:07 am

Hi,
If you remove index.php from your URL it should work properly.
Also you can try to add the following lines to your .htaccess after "RewriteEngine On"

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
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: 4133
Joined: Thu Jan 12, 2012 6:21 pm

Re: de/index.php not found

Postby peterdejong » Tue Apr 02, 2013 10:55 pm

This works but if I am on this URL: http://www.coachdejong.com/en/ for example.
When click on 'Home' top menu I get this URL: http://www.coachdejong.com/en.html

Same thing for all languages.

How to fix?
peterdejong
 
Posts: 12
Joined: Wed Feb 27, 2013 12:00 pm

Re: de/index.php not found

Postby Yana » Wed Apr 03, 2013 6:49 pm

Hi,
You can write a rule in your .htaccess to remove .html
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: 4133
Joined: Thu Jan 12, 2012 6:21 pm

Re: de/index.php not found

Postby peterdejong » Thu Apr 18, 2013 1:21 am

Yana wrote:Hi,
You can write a rule in your .htaccess to remove .html


Please give me a rewrite example?
peterdejong
 
Posts: 12
Joined: Wed Feb 27, 2013 12:00 pm

Re: de/index.php not found

Postby Yana » Thu Apr 18, 2013 2:13 pm

Hi,
Please try to add the following rules in your .htaccess file to add trailing slash . Hope this will solve the problem

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !index.php
RewriteCond %{REQUEST_URI} !(.*)/$
RewriteRule ^(.*)$ http://coachdejong.com/$1/ [L,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: 4133
Joined: Thu Jan 12, 2012 6:21 pm

Re: de/index.php not found

Postby peterdejong » Thu Apr 18, 2013 2:59 pm

PS I use Joomla en the Gtranslate system module.

I put in the lines in .htaccess but I still get links like: http://www.coachdejong.com/de/de.html/

This is now for Gtranslate in my .htaccess file:

# GTranslate redirect :
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !index.php
RewriteCond %{REQUEST_URI} !(.*)/$
RewriteRule ^(.*)$ http://www.coachdejong.com/$1/ [L,R=301]

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
peterdejong
 
Posts: 12
Joined: Wed Feb 27, 2013 12:00 pm

Re: de/index.php not found

Postby Yana » Thu Apr 18, 2013 3:05 pm

Hi,
Please check if you have installed the language code or language filter plugins please disable them.
Also please check joomla general options and try to disable "Adds suffix to URL" .
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: 4133
Joined: Thu Jan 12, 2012 6:21 pm

Re: de/index.php not found

Postby peterdejong » Thu Apr 18, 2013 3:13 pm

I am not aware of any of such plugins.

Maybe you can take a look?

I have enabled the Gtranslate account and send you a PM with the login details..
peterdejong
 
Posts: 12
Joined: Wed Feb 27, 2013 12:00 pm

Re: de/index.php not found

Postby Yana » Thu Apr 18, 2013 3:34 pm

Hi,
I disabled "Adds Suffix to URL" option. Please check.
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: 4133
Joined: Thu Jan 12, 2012 6:21 pm

Re: de/index.php not found

Postby peterdejong » Thu Apr 18, 2013 5:05 pm

yes, that works!

I changed this line to : RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1/ [L,R=301] to make it generic.

Thank you !
peterdejong
 
Posts: 12
Joined: Wed Feb 27, 2013 12:00 pm

Re: de/index.php not found

Postby Yana » Fri Apr 19, 2013 1:47 am

You're welcome!
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: 4133
Joined: Thu Jan 12, 2012 6:21 pm

Re: de/index.php not found

Postby peterdejong » Sun May 19, 2013 5:56 pm

That worked, thanks.
peterdejong
 
Posts: 12
Joined: Wed Feb 27, 2013 12:00 pm

Re: de/index.php not found

Postby Yana » Mon May 20, 2013 5:49 pm

You're welcome!
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: 4133
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 1 guest

2GLux
cron