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.

This was originally asked on stackoverflow, but looking around here, I get a comfy feeling someone will know the answer.

I am using lighttpd and would like to have the url path for one page show as the subdomain.

For example, I have the following url: http://test.com/blog/...

and I would like to show it in the browser url as: http://blog.test.com/...

Other detail: The blog.test.com is already an existing subdomain on the same server as test.com. It's a separate Wordpress installation though. We're simply trying to get everything under one domain but keep the subdomain path.

What is the best way to go about doing this?

share|improve this question
Are you looking to redirect users who visit /blog to the blog subdomain, or just to allow for the content of /blog to be shown when visiting the subdomain? –  Shane Madden Oct 18 '12 at 4:25
Yes, the latter. The content of /blog should show when someone visit the subdomain. –  Josh Oct 19 '12 at 15:17
Can you provide the current config of the main domain and the subdomain? –  Shane Madden Oct 19 '12 at 16:28

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.