Re: Rewrite all but one page

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

 



Matthew Tice wrote:

RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} !^/+partners/+video\.php
RewriteRule ^/partners(.*)$
https://testvideo101.example.com/partners$1[R,NC]<https://testvideo101.example.com/partners$1%5BR,NC%5D>
Thanks Mike, that did it.

np

One question.  Are the '+' necessary?  That means
"one or more slash" right?  Is that just in case someone mistypes and puts
in /partners//video.php ?

It does mean one or more slash's yeah. I guess it's not necessary, I just did to handle urls like "/partners//video.php" as you suggested.

Mike

---------------------------------------------------------------------
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