Re: combining conflicting rewrite rules

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

 




On 09/04/2014 04:35 PM, Wei-min Lee wrote:

1 - all requests for .html?$, .aspx?$, etc, should be rewritten as $1.page
2 - exclude /folderx/(.*)\.html?$ from rule 1

That's what RewriteCond is for

RewriteCond %{REQUEST_URI} !^/folderx/(.*)\.html?$
RewriteRule Goes Here

A RewriteCond (or N RewriteConds) apply to the 1 RewriteRule following.

http://httpd.apache.org/docs/current/mod/mod_rewrite.html#rewritecond
-- 
Rich Bowen - rbowen@xxxxxxxxxxx - @rbowen
http://apachecon.com/ - @apachecon 

[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