Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required. 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

1 Answer 1

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.