## enable rewrites Options +FollowSymLinks RewriteEngine on ## you can put here your magento root folder path relative to web root #RewriteBase /magento/ ## workaround for HTTP authorization in CGI environment RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] ## always send 404 on missing files in these folders RewriteCond %{REQUEST_URI} !^/(media|skin|js)/ ## never rewrite for existing files, directories and links RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-l ## rewrite everything else to index.php RewriteRule .* index.php [L]