views:

132

answers:

2

Hi I have a wordpress installed on

h*ttp://domainname.com

and I would like to have replication of the same website on a subdomain for example

h*ttp://sub1.domainname.com

h*ttp://sub2.domainname.com

What should I do to make this happen without copying any database and the wordpress should be smart enough to recognize the "sub1" and "sub2" to be used later in the program.

A: 

I'd recommend checking out a mirror style CDN such as SimpleCDN. If your looking to offload some of your files for performance reasons this would be ideal. You can set up a CNAME so that the content appears at your domain name as specified.

Alternatively there's no reason you could not accomplish this as the DNS level if your not actually looking to offload anything for performance. Simple add new A records at your DNS host with the same end point as your main site.

openist
chouputra
A: 
  1. Added subdomain into the DNS
  2. modify the get_option to intercept request for the 'siteurl' and 'home'
chouputra