RewriteRule .htaccess
-
Hello,
I would like that the url : mywebsite.com/en/homepage-en/ has the url : mywebsite.com/en
so I wrote the next rules in .htaccess :# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
RewriteRule ^/en/homepage-en/$ /en [L]
</IfModule>Where is my mistake ?
Thanks for your help
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘RewriteRule .htaccess’ is closed to new replies.