Skip to content

Instantly share code, notes, and snippets.

@Remiii
Created November 17, 2013 17:52
Show Gist options
  • Save Remiii/7516042 to your computer and use it in GitHub Desktop.
Save Remiii/7516042 to your computer and use it in GitHub Desktop.
RewriteCond %{HTTP_HOST} ^[^.]+\.[^.]+$
RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment