 <p>Well you have tried but having no solution please try this</p> <pre><code>RewriteEngine on RewriteRule ([a-zA-Z]+)/([0-9]+)$ index.php?name=$1&amp;pg=$2 [NC,L] </code></pre> <p>Put this .htaccess in category directory</p>