Answers for "Use 301 redirects to drive traffic to URLS with the same domain and sub domain (www and non-www subdomain)."

0

301 redirect subdomain to domain

RewriteEngine On
RewriteBase /
RewriteRule ^(.*)$ http://domain2.com/$1 [L,R=301,NC]
Posted by: Guest on January-21-2021

Code answers related to "Use 301 redirects to drive traffic to URLS with the same domain and sub domain (www and non-www subdomain)."

Browse Popular Code Answers by Language