UnixGuru

×
×

Redirect an old domain to a new domain

Back

RewriteEngine on
RewriteCond %{HTTP_HOST} ^example.com [NC,OR]
RewriteCond %{HTTP_HOST} ^www.example.com [NC]
RewriteRule ^(.*)$ http://example.net/$1 [L,R=301,NC]

Was this article helpful?
Dislike0 Like0

Views: 254