Created
February 23, 2013 17:46
-
-
Save andreasisaak/5020632 to your computer and use it in GitHub Desktop.
No need to replace "domain.com" with this improvement
https://github.com/contao/core/pull/4555
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
## Uncomment to rewrite domain.com to www.domain.com | |
#RewriteCond %{HTTP_HOST} !^www\. [NC] | |
#RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301] | |
## Uncomment to rewrite www.domain.com to domain.com | |
#RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] | |
#RewriteRule ^ http://%1%{REQUEST_URI} [R=301,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment