Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

One of the clients that I maintain requests a website redesign, we do all the work in a subfolder /newsite/ and they intend to make it live this instant. The /newsite/ is made in wordpress and from my understanding WP keeps all the URL's as they were initially created. Would it be easier to just create the new root dir at /newsite/ or move all contents of the root to /oldsite/ and move /newsite/ to the root?

Please advise the best route, i.e. mod_rewrite.

share|improve this question

3 Answers 3

If i understood well, why cannot you just change the documentroot?

http://httpd.apache.org/docs/2.0/mod/core.html#documentroot

share|improve this answer
    
Good idea, however I do not have access to the apache config file, as it is not hosted under myself. –  Austin May 17 '10 at 13:48
up vote 0 down vote accepted

Luckily, WordPress has very good documentation:

http://codex.wordpress.org/Moving_WordPress

share|improve this answer

For these sorts of applications, when running on Linux, I have just created a symbolic link for the root directory in the past. Then when it is time to switch I just change where the symbolic link points.

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.