PDA

View Full Version : addon domains



3m3m
09-12-2008, 09:41 AM
i just got, for example, www.example.net as an addon. I use wordpress and my main domain is maindomain.com. I have a different wordpress theme set up on my main domain at maindomain.com/example. I want example.net to show the content on maindomain.com/example.

I've tried doing that and it just goes to maindomain.com instead.

How do I do this? It's possible isn't it?

redsox9
09-12-2008, 10:34 AM
I believe it's possible to set your second Wordpress installation to point to the databases from the first installation, since it's the same account. All you would need to do is change your wp-config.php file for the example.net installation to point towards the database for the maindoma.com one:



define('DB_NAME', maindoma_wrdp1'); // The name of the database

felgall
09-12-2008, 01:18 PM
WordPress contains an entry within the database that identifies the domain that the WordPress installation is running on. If you point a different domain at the same WordPress tables then it will redirect to the other domain.

You need to use a different table prefix for the tables for your second WordPress installation if you don't want it to redirect. Then it will display its own separate content.