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

Plesk 9.x

I have a website
and my blog is on

I have no content on as of now
So I want all requests for to be redirected to

How should I do that ? Is this something I can do in Apache?

I am using the GoDaddy DNS server.
Not sure if it matters- but I have multiple domains hosted n the same server. And I am using Plesk to manage my virtual hosts.

share|improve this question
up vote 2 down vote accepted

Create a .htaccess file in your DocumentRoot and add these lines:

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteRule ^$ /blog [R=301,L]

To answer your question about DNS settings, no, those don't matter. DNS is only concerned with the "domain" portion of the URL, not what follows it in the url path.

share|improve this answer
You just created an infinite redirect loop, he wants to redirect to the same domain. – PowerSp00n Apr 20 '10 at 20:28
You're right. Edited my answer accordingly. – EEAA Apr 20 '10 at 20:33
Worked like a charm ! Thanks ! – RN. Apr 21 '10 at 15:12

The easiest solution is by creating an index.php file in your DocumentRoot with the following content:

share|improve this answer
Why bring php into the equation when you can do it with apache alone? – EEAA Apr 20 '10 at 20:23

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.