Trouble creating .htaccess re-write rules
I want to change example.com/xxx/* to example.com/yyy/* . I have spent a lot of time on this but can't seem to figure it out. Here is what I started with:
Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
And here is what I've tried added:
Code:
Options +FollowSymLinks
# 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 example.com/xxx/ ./yyy/$1
RewriteRule example.com/aaa/ ./bbb/$1
</IfModule>
# END WordPress
The code doesn't seem to do anything. What am I doing wrong?
Thank you.