Server Fault is a question and answer site for system and network administrators. 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

I have,my main site is in First I want to do is to redirect from root( to,than I want to rewrite url( to became Is this posible?Any help will be great.

Also I would like,if user click on the link info,he will go to( I would like to rewrite url to(


share|improve this question

In the VirtualHost config for

RewriteEngine on

RewriteRule ^/$ /main [R=301,L]
RewriteRule ^/info$ [R=301,L]
share|improve this answer
Sorry,it does not work for me,I'm doing something wrong.I create .htaccess file,copy you code,and put it in to root dir.Just to make a note,I'm trying this on my website,not on localhost.Thx for response. – user41117 Oct 23 '10 at 6:22

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.