<IfModule mod_rewrite.c>
    RewriteEngine On

    # If the request is not a valid directory or file
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f

    # Route everything to index.php
    RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
</IfModule>