Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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.