Rewrite rules for bilingual single-page website
-
I will have a single-page website that will have URLs in the form of
/en/my-page-hereand/ro/my-page-here. The problem is that the rewrite rules make myhttp://localhost/ro/homeredirect tohttp://localhost/home. If I am right then what can I do to correct these default lines in my .htaccess file:<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>in a way that does not stop working with a WordPress upgrade (the .htaccess contains, besides the lines above, a warning to not edit the file manually).
I use the latest WordPress version, 5.4.1.
Please help me.
Thank you.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Rewrite rules for bilingual single-page website’ is closed to new replies.