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

How would I redirect all of the traffic from http://mysite.com/blog to a different server running at http://blog.mysite.com???

I want to do a 301 permanent redirect from http://blog.mysite.com to http://mysite.com/blog, but I want to keep the blog server running on http://blog.mysite.com, but I want it to appear to the user that they are viewing http://mysite.com/blog.

share|improve this question

2 Answers 2

up vote 1 down vote accepted

you must proxy the "/blog" url to the blog server.

share|improve this answer
This is indeed the only way to do it, but it should be added that usually it's a bad idea to do so. You get extra latency on each page view, and form submissions, pingbacks etc are hard to handle when proxied. –  Jesper Mortensen Sep 5 '09 at 23:45

Here is an example: http://yuji.wordpress.com/2010/03/08/nginx-wordpress-proxy-subdirectory-to-wordpress-subdomain/

Yes it seems like a bad idea though :(

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.