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

I've got two sites ( and I'd like to forward to Is there a way of doing this with just DNS? I know I could set up hosting for both domains and then just use a HTTP redirect, but I'd rather just have one hosting account. I'm with NearlyFreeSpeech if that helps.

share|improve this question

migrated from Oct 12 '09 at 11:20

This question came from our site for professional and enthusiast programmers.

I don't think so no. It is possible that you could do something just with DNS provided your web server supported it, but I don't know of anything that does that. – Nick Craig-Wood Oct 10 '09 at 13:28
This question might be more appropriate for Server Fault. – Rob H Oct 10 '09 at 13:30

Not with DNS alone because DNS only deals with host names, not paths.

share|improve this answer

Duplicate of many other questions. You should search before posting.

share|improve this answer

No, there is not. You need to use a rewrite or redirect to accomplish your goal.

In your Apache VirtualHost config for

share|improve this answer

Your Answer


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