order allow,deny deny from all RewriteEngine On RewriteBase / # Pretty urls on localhost with alias RewriteCond %{HTTP_HOST} localhost RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ tanec/index.php?$1 # Pretty urls RewriteCond %{HTTP_HOST} tanec.domain.com RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?$1 #ErrorDocument 403 "index.php?page=403" #ErrorDocument 404 "index.php?page=404"