Created
September 30, 2011 10:37
-
-
Save usefulthink/1253397 to your computer and use it in GitHub Desktop.
rewrite /*.html -> /*/
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
RewriteEngine On | |
# alles, was keine datei ist, auf .html endet und nicht index.html ist... | |
RewriteCond ${REQUEST_FILENAME} !-f | |
RewriteCond ${REQUEST_FILENAME} \.html$ | |
RewriteCond ${REQUEST_FILENAME} !^index\.html$ | |
# ... umschreiben zu /.../ und redirecten | |
RewriteRule ^(.*)\.html$ /$1/ [R=301,QSA,L] | |
# alles andere an index.php anhängen... | |
RewriteCond ${REQUEST_FILENAME} !-f | |
RewriteRule ^(.*)$ index.php [QSA,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment