Skip to content

Instantly share code, notes, and snippets.

@ataylorme
Created November 17, 2012 22:53
Show Gist options
  • Save ataylorme/4101024 to your computer and use it in GitHub Desktop.
Save ataylorme/4101024 to your computer and use it in GitHub Desktop.
non-www to www redirect
RewriteCond %{HTTP_HOST} !^www.
RewriteRule (.*) http://www.mydomain.com/$1 [R=301,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment