httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles Li <cli...@yahoo.com>
Subject [users@httpd] help with redirect base on context
Date Tue, 12 Feb 2008 20:32:44 GMT
I would like to redirect base on the context:

When user access my server with the following:

http://server/outside

I would like to redirect them to another site.
I try the following, but did not get it work.

    RewriteEngine on
    RewriteCond %{REQUEST_URI} ^/outside$   [NC]
    RewriteRule ^/$ http://server/basic.jsp [R]

It just gives me a page not found 404.
Please can yo point out what am I doing wrong?

Thanks.



      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message