# BEGIN WordPress RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^/blog/([0-9]+)/?$ /blog/index.php&cat=$1 [L,QSA] RewriteRule ^/blog/ /blog/index.php [L] # END WordPress