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 should be redirected to

but should not be redirect, it should still navigate to

I tried this

Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*)$1 [R=301,L]

when I accessed, it displays page not found as there is no page

How can I achieve this redirection?

share|improve this question
up vote 3 down vote accepted
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?source\.com$ [NC]
RewriteCond %{REQUEST_URI} ^/$
RewriteRule ^(.*)$ [R=301,L]
share|improve this answer,, all should be redirected. How to achieve this? – Tech Jerk Oct 12 '11 at 7:17
Check out my updated answer. – quanta Oct 12 '11 at 7:31

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.