Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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.