I am using a theme that uses posts for multiple pages, and the blog posts goes in a category called “blog”, I am using the permalinks setting “/%postname%”, and the blog menu url is “/category/blog”, how can I rewrite that to “/blog” without breaking the rest of the wp url rewrites?, my htaccess is the normal from wp:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
You don’t have to touch the Apache configuration for this, you can do this all from the WordPress rewrite system. But indeed, your general idea is correct: you should append
?cat=3
(orcategory_name=blog
if you want to be even clearer). Remember that your blog archive can have multiple pages, maybe you want to handle this too.This is how I would do this from inside WordPress:
adding
RewriteRule ^blog$ /?cat=3 [NC,N]
Seems to do the job.