when to use which mod_rewrite rule for self routing? <p>There are several ways to write a mod_write rule for self routing. At the moment i am using this one:</p> <pre><code>RewriteCond %{REQUEST_URI} !\.(js|ico|gif|jpg|png|css)$ RewriteRule ^.*$ index.php [NC,L] </code></pre> <p>But i also could use</p> <pre><code>RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*) index.php </code></pre> <p>OR</p> <pre><code>ErrorDocument 404 /index.php </code></pre> <p>There may be many more. </p> <p>Are there any drawbacks for using one of these examples?</p> <p>Are there any use cases where one rule makes more sense then the other? </p> <p>Could you explain the difference between these rules in detail?</p> <p>Thx for your time and help.</p>