Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (11 sloc) 346 Bytes
IndexIgnore */*
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
# Redirect non www to www
RewriteCond %{HTTP_HOST} !=localhost
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
# HTML file ending not needed
RewriteRule ^([^\.]+)$ $1.html [NC,L]
</IfModule>
You can’t perform that action at this time.