Hi. Ive never understood how to write multiple rules in htaccess. Can someone help me please. Ive read all the threads and I just get lost when being explained how it all works.
My Current htaccess looks like this
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
</IfModule>
# END WordPress
I need to add 1 rue to this. I am renaming my wordpress category base. The example I have is
RewriteEngine on
RewriteBase /
RewriteRule ^old_dir/(.*) http://www.example.com/new_dir/$1 [R=301,L]
Now my structure looks like this currently
http://www.example.com/blog/category/category-name/
I want it to be like this
http://www.example.com/blog/new-category/category-name/
Any help would be greatly appreciiates
[edited by: incrediBILL at 7:10 pm (utc) on Sep 6, 2012]
[edit reason] fixed code formatting [/edit]