• I will have a single-page website that will have URLs in the form of /en/my-page-here and /ro/my-page-here. The problem is that the rewrite rules make my http://localhost/ro/home redirect to http://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.

    • This topic was modified 5 years, 9 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
Viewing 1 replies (of 1 total)
  • Thread Starter silviubogan

    (@silviubogan)

    Through “a single-page website” I meant a website that is like a web application, it has a single entry point PHP file. The routing features are made with client JavaScript, with a client-side library (Sammy.js).

    Thank you.

Viewing 1 replies (of 1 total)

The topic ‘Rewrite rules for bilingual single-page website’ is closed to new replies.