httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wei-min Lee <weimin.b....@gmail.com>
Subject Re: [users@httpd] combining conflicting rewrite rules
Date Thu, 04 Sep 2014 22:57:33 GMT
Thanks for the tip.


On Thu, Sep 4, 2014 at 1:47 PM, Rich Bowen <rbowen@rcbowen.com> wrote:

>
> 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@rcbowen.com - @rbowenhttp://apachecon.com/ - @apachecon
>
>

Mime
View raw message