• I have set up multisite and have 2 domains:
    site1.uk
    site2.com

    site1.uk is my primary site and to this I have added site1.uk/site2

    I have also added MU Domain Mapping and for site1.uk/site2 I have added the mapping https://www.site2.com

    The DNS for Site2.com has a CNAME of site2.com

    In the .htaccess for site2.com, I have added

    RewriteEngine On
    RewriteCond % {HTTP_HOST} ^site2.com$ [OR]
    RewriteRule ^$ https://www.site1.uk/site2/$1 [L,R=301]

    With this setup, I can display my site2.com site by using site2.com in the browser, however the site is displayed with the address site1.uk/site2. I know this is the expected behaviour when using .htaccess but I was hoping the MU Domain Mapping would display the correct address.

    I tried changing the Site URL for site1.uk/site2 to https://www.site2.com but this cause the site1.uk site to be displayed with a Page can’t be found message.

    I have been through as many posts on the forum that I can but have not been able to make any progress. Is what I am trying to achieve possible and if so how?
    Thanks

  • The topic ‘Retain domain name in multisite’ is closed to new replies.