Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have a number of WordPress-enabled sites setup as virtual hosts under XAMPP on a Windows 7 development server.

An example virtual host is as follows:

<VirtualHost *:80>
ServerName siteA.localhost
DocumentRoot "C:/htdocs/siteA"
</VirtualHost>

My goal is to have all the sites use the same WordPress install, which is located in it's own folder off the Document Root, ie: "C:/htdocs/wordpress".

The only WordPress files unique to each virtual host will then be the wp-config.php file and the /wp-content/ folder, which will be located off the root of each site.

Does anyone have any suggestions for how to achieve this? I've tried adding the WordPress folder as an Alias for each Virtual Host, and adding it as "php_value include_path" value for each Virtual Host as well, but neither of these have worked.

Ultimately I want to make it easy to upgrade all my WordPress-powered sites by having them share the same WordPress core.

Thanks.

share|improve this question

1 Answer 1

Have you considered using the multisite capabilities built into WordPress?

http://codex.wordpress.org/Create_A_Network

There is a plugin that will allow you to map multiple domains to the single installation.

http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.