URL Rewrite Question

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

 



This is my first attempt at using RewriteRule.

 

I have about 200 webpages the contain SPS or MENU (in UPPER or lower case) that I want to send to a webpage on another server.

 

I thought this might work, but it has not.

 

RewriteCond  %{REQUEST_URI}  (SPS|MENU)

RewriteRule  ^/$                 http://new-webserver/new-webpage.html  [L]

 

I based this on what I read in http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewriterule and this example found therein:

 

RewriteCond  %{HTTP_USER_AGENT}  ^Mozilla

RewriteRule  ^/$                 /homepage.max.html  [L]

 

                I am fairly familiar with Perl Regular _expression_, but could someone explain what ^/$ does?  I understand what ^ and $ do.

 

                Thanks.

 

Brian

 


[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