# Force no Indexes in all cases # Force ExecCGI # FollowSymlinks for RewriteEngine Options -Indexes +ExecCGI +FollowSymlinks AddHandler wsgi-script .wsgi # No index.html or other things DirectoryIndex extra.wsgi # Stop here if application is handling the request RewriteCond %{REQUEST_URI} ^/extra\.wsgi RewriteRule (.*) - [L] # Extra application RewriteRule (.*) /extra.wsgi/$1 [L,QSA,NS]