<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase %url_dir%
RewriteRule ^index\.php$ - [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . %url_dir%index.php [L]
</IfModule>
