• Hi there

    I would like to create a re-direct of abc.com (going to be terminated in a month) to a subdomain of a different domain abc.xyz.com, so all the links match.

    I am using the code

    #Options +FollowSymLinks
    RewriteEngine on
    RewriteRule ^(.*)$ https://www.newsite.com/$1 [R=301,L]

    … to re-direct domain A to domain B.

    Exactly which .htaccess code do I use however to re-direct to a site moving to a subdomain of a different domain, but maintaining the structure?

    Would this be correct

    #Options +FollowSymLinks
    RewriteEngine on
    RewriteRule ^(.*)$ https://abc.xyz.com/$1 [R=301,L]

    ?

    Thank you in advance.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘.htaccess Redirect from domain to subdomain of diferrent domain’ is closed to new replies.