RewriteEngine On RewriteBase /plaplo/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /plaplo/index.php [L] RewriteRule ^/plaplo/portfolio/category/[a-b]+$ /plaplo/portfolio?catslug=$1