hi,
after tons of tread no solution found for my issue: please help me if you can.
I have a D6 site fully working on apace web server, with cpanel.

This site works with site1.com domain.
I successfully created multisite installation to use site2.com and it works great.

site2.com is a "parked domain" (no account needed on server): it uses site1.com drupal core but it has different contents, database, users, and i simply set dns nameserver of it to point to site1.com and everything is ok
Here directory schema:

--sites <--(site1.com)
---/default
---/all
---/site2.com

Now i own site2.net domain and i want to point it on site2.com site not using the tipical "standard or steath forwarding" registrant services.

Summarizing: i want to redirect site2.net to site2.com . how ?

Pardon my bad english :$

Comments

steeph’s picture

First, the comment on the directory structure is not entirely correct. It's more like this:

--sites <--(everything that is not Drupal core)
---/default <--(every domain that does not have an own directory (and therefor an own site))
---/all
---/site2.com

The default site is used for every domain that does not have an own site/directory. So if you would acces the Drupal installtion through. my-new-domain.com or localhost or anything else that is not site2.com, you will get the default site.

So if you would change site2.com to be the default site and the now default site to site1.com, it would work the way you want it. You should clear caches after such changes. I'm not sure if there are other problems with changing the site's directory after installation. I did it once without a problem, but I've read it's not that easy if the site is using modules and/or themes that are placed in sites/default.

Another idea would be to create a third site (site2.net) directory and copy the settings.php so it uses the same settings and database. But that's just an idea, I have no idea if it's designed to work that way.

Either way, make a backup before changing anything.