Created
November 26, 2011 09:00
-
-
Save kblomqvist/1395330 to your computer and use it in GitHub Desktop.
Nice URLs for legacy .html site
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AddCharset UTF-8 .html | |
Options All -Indexes | |
ServerSignature Off | |
ErrorDocument 404 /404.html | |
RewriteEngine On | |
RewriteRule $^ index.html [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule ^([A-Za-z0-9-/]+)/?$ $1.html [L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment