Installing and updating WooCommerce rewrites the .htaccess file and leads to 404
-
The problem occurs when installing WooCommerce and updating it, leading to a 404 error on server level. I am not a computer specialist, but the hosting company support gave me the following explanation: “The reason for generating the error is the change that is being written in the .htaccess file during the update of the Woo plugin. It is probably a misunderstanding between the two plugins – the WooCommerce and the WPML Multilingual CMS. It marks as a default language BG. Then Woo rewrites the path in the .htaccess file, as it takes the default language is bg and then it redirects to a page /bg/, which does not exist physicaly as it is a symlink which is generated by WPML. And this generates a 404 error on a server level, as there is no such file on the disk.”
The hosting company fixes the problem manually and provided a correct .htaccess configuration: RewriteEngine On RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / RewriteRule ^index.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] .
The WPML support said that the error is caused by Woo, but I still expect them to cooperate for solving the issue.
The default language of the site is really BG, and I haven’t created the WooCommerce shop yet, as it seems problematic already breaking the site. But I have to create it, so please advice how to solve the issue so that any new updates on Woo will not break the site again.
Thanks in advance to anyone who could help!The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.