Server Fault is a question and answer site for system and network 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 multi-site wordpress containing more then 50 blogs/sub-site.

Our base URL to wordpress site is and we have other sub-sites in it like site2 ... etc.

Now My question is to redirect the main-site to one of the subsites but a simple redirect 301 is not working. I tried some solutions of mod-rewrite but its not working either for this main-site to redirect to sub-site.

A solution is required to Redirect


Solution used so far but not working for me solution1 solution2

share|improve this question
up vote 0 down vote accepted

I found a solution here If someone want to redirect the main wordpress site to its sub-site, just create the redirect.php file in the wp-content/plugins/ directory and put the code mentioned in the post, replace the url with your own and name of the main site in the IF condition.

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.