# $Id: .htaccess,v 1.3 2006/11/09 09:08:14 remy Exp $ Options +FollowSymLinks +ExecCGI RewriteEngine On RewriteBase / RewriteRule "(^|/)(CVS|\.svn|\.git)/" - [F] # strip www. from the domain RewriteCond %{HTTP_HOST} ^www\.mit-license\.org$ [NC] RewriteRule ^(.*)$ http://mit-license.org/$1 [R=301,L] # if the file or directory exists RewriteCond %{REQUEST_FILENAME} -d [OR] RewriteCond %{REQUEST_FILENAME} -f RewriteRule .* - [L] # using 'index.php' because it forces a '/' request to the handler RewriteRule ^(.*)$ index.php [QSA,L]