Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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

How would I go about configuring my web server to handle a domain that's already configured using DNS to then redirect it to a folder?

My friend pointed his domain forum.example.com to my forums at: forums.example.org. When you visit the first page, it's displaying a blank white page.

Do I have to redirect it using .htaccess?

share|improve this question

The webserver must be configured correctly so it knows how to respond to a request for a specific URL. If you're running an Apache webserver (the most common one) you can find more information about this in the apache documentation.

If that is working, you may refer to this question in order to redirect all requests to the other domain.

share|improve this answer

Apache must be configured in order to accepts the requests coming from the hostname forum.example.com and consider them an alias for forums.example.com.

You can accomplish it by changing the virtual host ServerAlias directive to include forum.example.com as alias of your forum hostname.

Unfortunately, this is not possible unless you have access to the webserver configuration. Thus, if you have a shared hosting, you need to contact your provider to see if they can configure it for you.

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.