 <p>Change your rule so that the slash and everything after it is optional:</p> <pre><code>RewriteEngine On RewriteBase / RewriteRule ^technology(?:/(.*)|)$ /view.php?cat=technology&amp;short_url=$1 [L] </code></pre>