Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jpcontrerasv/cb19c148dc3f67fb4715 to your computer and use it in GitHub Desktop.
Save jpcontrerasv/cb19c148dc3f67fb4715 to your computer and use it in GitHub Desktop.
HT > Redirección con WWW a sin WWW
RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]
RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment