help with redirect base on context

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux