Skip to content

Instantly share code, notes, and snippets.

@rnarian
Last active August 29, 2015 14:26
Generic htaccess redirect www to non-www
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
@rnarian
Copy link
Author

rnarian commented Aug 6, 2015

Uh oh!

There was an error while loading. Please reload this page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment