WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We have an install of WordPress Network (Multisite) that has multiple blogs running under the url blogs.exampleurl.com where each subsite is blogs.exampleurl.com/site1 /site2 etc...

We have a user that already has a URL (www.exampleurl.com/usersite/) and would like to keep his URL but also use our install of WordPress. Can this be done with any settings in WordPress, any plugins, or something else on the server?

For clarification, he doesn't want his URL to just redirect to the blogs. URL but instead maintain his URL while being served from the WordPress instance.

share|improve this question

This is straightforward if I understand the question properly. Use the "WordPress MU Domain Mapping" plugin:



I think something like the following should work in your .htaccess:

RewriteCond %{HTTP_HOST} www.exampleurl.com
RewriteCond %{REQUEST_URI} !^/testsite
RewriteRule ^(.*)$ testsite/$1 [L]

This will return the contents of the folder "testsite" for "www.exampleurl.com". And if you have:


then I think it would return the contents of:


So I am guessing if you but Wordpress in that folder it should work. You might also need to map www.exampleurl.com to blogs.exampleurl.com using the domain mapping plugin.

share|improve this answer
I can see how that would work for something like www.usersite.example.com but will it also work for www.example.com/usersite/ ? – Jason Dec 6 '11 at 14:00
No, I guess not. You should be able to achieve this using mod_rewrite though. I'll have a think about it. – ZweiBlumen Dec 7 '11 at 8:18
I've updated my answer with some mod_rewrite info. Note sure if it helps, but worth giving it a go. – ZweiBlumen Dec 7 '11 at 16:07

Just use the domain mapping plugin. It odes what you want and yes it works on subfolder sites.

share|improve this answer

Your Answer


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.