• Resolved sbct

    (@sbct)


    Hello there!
    I’m facing a really frustrating issue with the plugin. As soon as I or anyone on the site clicks the flag to change the language, from the original one, after a while I get a 404 error, page not found, all over the website.
    After digging a bit I found that the .htaccess file gets modified I the section # BEGIN WordPress with the following text, where it puts !RewriteBase /it/” and “RewriteRule . /it/index.php [L]”.

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteBase /it/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /it/index.php [L]
    </IfModule>

    How can I resolve this issue which is blocking the website? In the meantime I’ve removed the possibility to switch language to prevent the problem.

    Thanks!
    Andrea

    • This topic was modified 3 years, 5 months ago by sbct.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Anghel Emanuel

    (@anghelemanuel99)

    Hello there,

    Thank you for letting us know about your problem!

    Make sure you have pretty permalinks enabled and working. https://www.ads-software.com/support/article/using-permalinks/#using-pretty-permalinks
    You can try to resave them from WP Dashboard –> Settings –> Permalinks.

    The 404 error is treated also on our troubleshooting page -> “404 error when accessing a translated page” section: https://translatepress.com/docs/troubleshooting.

    Let me know about this!

    Kind Regards,

    Thread Starter sbct

    (@sbct)

    Hello again!
    I’ve checked the guides but all speak of ngnix or apache servers. I have Litespeed server, but it has been working correctly in the past months I was using the plugin, and few weeks ago I noticed this problem because differente customers were telling that there was the 404 error.
    I’ve only recently found out about the change in the .htaccess file when the /it it requested.
    I’ve saved the permalinks but it still doesn’t work… it changes the htaccess to the one I’ve written in the past post.

    How can I proceed?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘404 Error after switching language’ is closed to new replies.