Error 404
-
Hi, I have already used Translate in another project and it worked perfectly. Now I am using it again, but unfortunately the link https://darkdiving.de/en/ only returns a
Not Found
The requested URL was not found on this server.What is wrong here?
The page I need help with: [log in to see the link]
-
Hello,
The issue occurs on your site when GTranslate is deactivated (but not removed) and TranslatePress is activated, is that correct? If so, please go to your .htaccess file and search for the following lines:
BEGIN GTranslate config ### RewriteRule ^(af|sq|am|ar|hy|az|eu|be|bn|bs|bg|ca|ceb|ny|zh-CN|zh-TW|co|hr|cs|da|nl|en|eo|et|tl|fi|fr|fy|gl|ka|de|el|gu|ht|ha|haw|iw|hi|hmn|hu|is|ig|id|ga|it|ja|jw|kn|kk|km|ko|ku|ky|lo|la|lv|lt|lb|mk|mg|ms|ml|mt|mi|mr|mn|my|ne|no|ps|fa|pl|pt|pa|ro|ru|sm|gd|sr|st|sn|sd|si|sk|sl|so|es|su|sw|sv|tg|ta|te|th|tr|uk|ur|uz|vi|cy|xh|yi|yo|zu)/(af|sq|am|ar|hy|az|eu|be|bn|bs|bg|ca|ceb|ny|zh-CN|zh-TW|co|hr|cs|da|nl|en|eo|et|tl|fi|fr|fy|gl|ka|de|el|gu|ht|ha|haw|iw|hi|hmn|hu|is|ig|id|ga|it|ja|jw|kn|kk|km|ko|ku|ky|lo|la|lv|lt|lb|mk|mg|ms|ml|mt|mi|mr|mn|my|ne|no|ps|fa|pl|pt|pa|ro|ru|sm|gd|sr|st|sn|sd|si|sk|sl|so|es|su|sw|sv|tg|ta|te|th|tr|uk|ur|uz|vi|cy|xh|yi|yo|zu)/(.)$ /$1/$3 [R=301,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(af|sq|am|ar|hy|az|eu|be|bn|bs|bg|ca|ceb|ny|zh-CN|zh-TW|co|hr|cs|da|nl|en|eo|et|tl|fi|fr|fy|gl|ka|de|el|gu|ht|ha|haw|iw|hi|hmn|hu|is|ig|id|ga|it|ja|jw|kn|kk|km|ko|ku|ky|lo|la|lv|lt|lb|mk|mg|ms|ml|mt|mi|mr|mn|my|ne|no|ps|fa|pl|pt|pa|ro|ru|sm|gd|sr|st|sn|sd|si|sk|sl|so|es|su|sw|sv|tg|ta|te|th|tr|uk|ur|uz|vi|cy|xh|yi|yo|zu)/(.)$ /wp-content/plugins/gtranslate/url_addon/gtranslate.php?glang=$1&gurl=$2 [L,QSA] RewriteRule ^(af|sq|am|ar|hy|az|eu|be|bn|bs|bg|ca|ceb|ny|zh-CN|zh-TW|co|hr|cs|da|nl|en|eo|et|tl|fi|fr|fy|gl|ka|de|el|gu|ht|ha|haw|iw|hi|hmn|hu|is|ig|id|ga|it|ja|jw|kn|kk|km|ko|ku|ky|lo|la|lv|lt|lb|mk|mg|ms|ml|mt|mi|mr|mn|my|ne|no|ps|fa|pl|pt|pa|ro|ru|sm|gd|sr|st|sn|sd|si|sk|sl|so|es|su|sw|sv|tg|ta|te|th|tr|uk|ur|uz|vi|cy|xh|yi|yo|zu)$ /$1/ [R=301,L] ### END GTranslate config
Once you find these, please delete them from there and try again to switch the language.
These are added by GTranslate plugin and completely brake the TranslatePress functionality. It’s important to make sure that no other translation plugin is active on the site alongside TranslatePress.
Let me know how this goes,
Kind regards,
Anca
-
This reply was modified 9 months, 2 weeks ago by
Anca.
Hey,
thanks for the response. No that happened before I installed GTranslate – thats the reason I installed it!
Hello,
If you would like us to investigate the issue further, it’s necessary to test on a staging site where GTranslate is deactivated and deleted along with all its data.
Could you please tell me if all pages in the English language are generating 404 errors or just the homepage?
On this staging site, could you please test if the problem persists with only TranslatePress and the default Twenty Twenty theme active on the site, with all other plugins deactivated, including cache and security plugins?
Kind regards,
Anca
Okay, thanks – we are one step closer.
darkving.de the website.
When I swithc to englisch it works for the first three pages . the aother menues are translated in the backend but ist not jumping to the side.the /en is missing in the last two Menue points
Hello,
The first suggestion is to make sure you have checked the ‘Force language in custom links‘ option in TranslatePress Settings – General tab, and then you need to verify how you added the links in the menu for those that don’t redirect to English versus the links that redirect correctly from the menu.
You can add relative links if you added absolute ones for these, or vice versa.You can also check if you have added redirects for these.
Kind regards,
Anca
It looks like that its now working!
THANKS
Sorry another error…. now sime of the menues the will be opened in a new tab!
The last two for sure “imressions” “Guidance” but just if I choose Englisch
darkdiving.de
could you pls check and let me know
-
This reply was modified 9 months, 1 week ago by
thomson2105.
any ideas?
error found
-
This reply was modified 9 months, 2 weeks ago by
The topic ‘Error 404’ is closed to new replies.