I could use some help with this, too. I have a slave site for which I want to change the primary domain for. For this post, let's say I have the current domain: legacydomain.com and the newdomain.com.
I added newdomain.com domains to the JMS template for the legacy site alongside the existing legacydomain.com urls.
I also created an AddOn domain called newdomain.com in cPanel and gave it the following path for the Document Root:
/domains/legacydomain/public_html
It set up redirection to
newdomain.com/^/site/(.*)$ If I change that redirect to
www.legacydomain.com, it still doesn't work.
What do I need to do to get it to display the content of legacydomain.com in newdomain.com?
I can't seem to turn off redirection.
*********** Update: *************
Looks like I was getting a cached version. The changes did work and the legacydomain.com site does display as wanted.
-------
Is this the best way to handle this, if the client actually no longer wants to use the legacydomain.com url, but rather, to do a 301 permanent redirect from the legacydomain.com url to the newdomain.com url?
It's confusing when working in the JMS environment.