Skip to content

Instantly share code, notes, and snippets.

@andreasisaak
Created February 23, 2013 17:46
Show Gist options
  • Save andreasisaak/5020632 to your computer and use it in GitHub Desktop.
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
## 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