save.bz
Search

Htaccess Redirect Multiple Domains (with current page/path url) to a new domain

1 week ago  •  1.7K views
# Htaccess Redirect Multiple Domains (with current page/path url) to a new domain

RewriteEngine on
RewriteBase /

RewriteCond %{HTTP_HOST} ^oldsite\.com$ [OR]
RewriteCond %{HTTP_HOST} ^oldersite\.com$
RewriteRule (.*)$ https://newsite.com/$1 [R=301,L]