mirror of
https://github.com/samsonjs/mit-license.git
synced 2026-03-25 09:25:49 +00:00
21 lines
576 B
ApacheConf
21 lines
576 B
ApacheConf
<IfModule mod_rewrite.c>
|
|
|
|
# $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]
|
|
</IfModule>
|