ForceType text/css RewriteEngine On RewriteCond %\{REQUEST_FILENAME\} !-f RewriteCond %\{REQUEST_FILENAME\} !-d #RewriteRule ^(.*?)/*$ /index.php?query=$1 [QSA] # redirect real files # this is allow me to go to host.net/test instead of host.net/index.php?page=test #RewriteCond %\{REQUEST_FILENAME\} -f #RewriteRule ^(.+) - [PT,L] #RewriteRule ^(.*?)/*$ /index.php?page=$1 [QSA] Options -MultiViews ####################### # ErrorDocument 404 http://texthost.org # DirectoryIndex texthost.79 #AddHandler x-httpd-php5 .php .xml #RewriteEngine on RewriteCond %\{REQUEST_URI\} !^/robots.txt RewriteCond %\{REQUEST_URI\} !^/sitemap.xml RewriteCond %\{REQUEST_URI\} !^/style.css RewriteCond %\{REQUEST_URI\} !^/robots.txt RewriteCond %\{REQUEST_URI\} !^/feed.php RewriteCond %\{REQUEST_URI\} !^/feed.png RewriteCond %\{REQUEST_URI\} !^/stats/ RewriteCond %\{REQUEST_URI\} !^/stats/index.html RewriteCond %\{REQUEST_URI\} !^/you/you.jpg RewriteCond %\{REQUEST_URI\} !^/you/index.html RewriteCond %\{REQUEST_URI\} !^/you/ RewriteCond %\{REQUEST_URI\} !^/refer/ RewriteCond %\{REQUEST_URI\} !^/refer/index.php RewriteCond %\{REQUEST_URI\} !^/refer/setupdb.php RewriteCond %\{REQUEST_URI\} !^/refer/display.php RewriteCond %\{REQUEST_URI\} !^/refer/refer.css RewriteRule ^(.*)$ index.php?query=$1 [QSA]