Forum Archive - de/index.php not found

de/index.php not found
Mar 5, 2013 8:09 am by peterdejong
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?
Re: de/index.php not found
Mar 5, 2013 9:07 pm by Yana
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
Re: de/index.php not found
Apr 2, 2013 6:55 pm by peterdejong
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?
Re: de/index.php not found
Apr 3, 2013 2:49 pm by Yana
Hi, You can write a rule in your .htaccess to remove .html
Re: de/index.php not found
Apr 17, 2013 9:21 pm by peterdejong
Hi, You can write a rule in your .htaccess to remove .html Please give me a rewrite example?
Re: de/index.php not found
Apr 18, 2013 10:13 am by Yana
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]
Re: de/index.php not found
Apr 18, 2013 10:59 am by peterdejong
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
Re: de/index.php not found
Apr 18, 2013 11:05 am by Yana
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" .
Re: de/index.php not found
Apr 18, 2013 11:13 am by peterdejong
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..
Re: de/index.php not found
Apr 18, 2013 11:34 am by Yana
Hi, I disabled "Adds Suffix to URL" option. Please check.
Re: de/index.php not found
Apr 18, 2013 1:05 pm by peterdejong
yes, that works! I changed this line to : RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1/ [L,R=301] to make it generic. Thank you !
Re: de/index.php not found
Apr 18, 2013 9:47 pm by Yana
You're welcome!
Re: de/index.php not found
May 19, 2013 1:56 pm by peterdejong
That worked, thanks.
Re: de/index.php not found
May 20, 2013 1:49 pm by Yana
You're welcome!

SIMILAR TOPICS

Google doesnt index gtranslate pagesJul 23, 2012 4:44 amReplies: 21Post by: trotsak
translated page not foundnPage not foundJan 22, 2018 6:17 pmReplies: 8Post by: smileexcursions
500 error - file not foundMar 19, 2018 5:15 pmReplies: 1Post by: bigblue
(HELP) server DNS address could not be foundFeb 17, 2017 10:30 amReplies: 14Post by: kherogen
Page not found error for translated pagesMar 17, 2016 11:04 amReplies: 23Post by: sadashiv

Try GTranslate with a free 15 day trial