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 client that has a current WordPress installation in their website root, and they are creating a new WordPress site which is in a subdirectory during development. My question is, what do I do when they are ready to go live and replace their current WordPress install with the new dev version? Can they just point their main URL to the subdirectory instead of having to move the entire dev site into the root of their website? Will this work with WordPress?

share|improve this question
    
Do you want to keep the subdirectory in the URL? Or does it still have to appear as if the site is at the top level domain (www.domain.com) –  GavinR Jul 20 '11 at 3:48
    
I would like it to appear so that the site is at the top level domain if possible. –  Industrial Themes Jul 20 '11 at 12:48
add comment

1 Answer

up vote 2 down vote accepted

WordPress allows for this setup, and they have complete instructions here:

Giving WordPress its Own Directory While Leaving Your Blog in the Root Directory

I personally would move the files because to me it's cleaner, but the above mentioned solution should work for you.

share|improve this answer
    
Thank you, I had read that already. The whole reason I'm asking this is because I am not going to be available the day the client wants to go live, so they asked if they could just use the redirect method I mentioned above which does not require any coding changes or file moves. If I follow that article, I might as well just move the whole site. I'm basically just looking for an easy way to go from dev to live without having to do any coding changes or file moves. I'd love it if someone could just answer "you can't do that", which I could relay to the client :) –  Industrial Themes Jul 20 '11 at 14:25
    
This solution works great except for some themes that modify the htaccess file heavily. –  Drai Oct 12 '11 at 20:02
add comment

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.