 <p>If you want to avoid forwarding landing page then use:</p> <pre><code>RewriteEngine On RewriteBase / RewriteCond %{REQUEST_URI} !\.(gif|jpg|png|swf|css|html|js|ico|pdf)$ RewriteCond %{REQUEST_URI} !^/app\.php(/.*)?$ [NC] RewriteRule ^(.+)$ app.php/$1 [L] </code></pre> <p><code>.+</code> will match anything but not the landing page.</p> <p>In case you want to exclude all the top level domain URLS then use:</p> <pre><code>RewriteCond %{HTTP_HOST} !^(www\.)?example\.com$ [NC] RewriteCond %{REQUEST_URI} !\.(gif|jpg|png|swf|css|html|js|ico|pdf)$ RewriteCond %{REQUEST_URI} !^/app\.php(/.*)?$ [NC] RewriteRule ^(.*)$ app.php/$1 [L] </code></pre>