Options -Indexes -MultiViews
DirectoryIndex index.php

<IfModule mod_rewrite.c>
    RewriteEngine On

    # Also support clean links if Apache is pointed directly at /public.
    RewriteRule ^q/([A-Za-z0-9_-]+)/?$ index.php [QSA,L]
    RewriteRule ^s/([A-Za-z0-9_-]+)/?$ index.php [QSA,L]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^ index.php [QSA,L]
</IfModule>
