 <p>You just need a negative condition in your RewriteRule to allow specific directory or path:</p> <pre><code>RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule !^assets(/.*)?$ router.php [L,NC] </code></pre>