# Rewrite current-style URLs of the form 'index.php?q=x'. RewriteCond %{REQUEST_URI} !\.(png|gif|s?html|txt|jpe?g|css|js|cgi|ico|swf|flv|asp|aspx|asx|jsp|cfm)$ [OR] RewriteCond %{REQUEST_URI} ^\/share\/ [OR] RewriteCond %{REQUEST_URI} ^\/files\/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]