Sign up ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have put my wordpress installation liek these : for the testing time, and time to implement thing in the database. Now i have switch the whole thing to : (root). How is it possible to tell all the request to /cms to be / (root). i know htaccess can do that, but i prefer a plugin

or how to migrate an installation from one directory to another seemlessly ?

share|improve this question

2 Answers 2

In your wp-config.php Just put this rule in there:


Put it right above:

/* That's all, stop editing! Happy blogging. */
share|improve this answer
Then I would go through with the search and replace plugin to search and replace all images and posts: – drewrowalnd Mar 6 '12 at 21:38
i wanna just make sure.... ANY request from : like : will be redirected to understand ?.. i just want the /cms to disapear ! and get the good page – menardmam Mar 6 '12 at 21:46
oh, so you made public to your viewers? I think you should be able to do a wildcard redirect within your hosting account. However, I am not sure. – drewrowalnd Mar 6 '12 at 21:48
Yep !, my fault... now google found a tons of pages at /cms/xyz that need to be silently redirected to /xyz ! – menardmam Mar 6 '12 at 21:51
up vote -2 down vote accepted

htaccess :

share|improve this answer
That’s not an answer. – toscho Mar 13 '12 at 1:52

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.