Redirect old domaim to new domain


Andy

Administrator
Staff member
If you change your website domain, here is the .htaccess file you will need to place in the old domain directory:

Code:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^old_domain\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.old_domain\.com$
RewriteRule ^(.*)$ "https\:\/\/new_domain\.com\/$1" [R=301,L]
 
Top