[users@httpd] combining conflicting rewrite rules

2014-09-04 Thread Wei-min Lee
Hello, I have Apache 2.4 in front of Tomcat 6 hosting sites developed with Autonomy. I'm using Apache to proxy ajp as well as rewrite in my vhost config the following ways... RewriteEngine on RewriteRule ^/main/(.*) /$1 [L,R=301] RewriteRule ^/html/main/(.*) /$1 [L,R=301] RewriteRule ^/$

Re: [users@httpd] combining conflicting rewrite rules

2014-09-04 Thread Rich Bowen
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

Re: [users@httpd] combining conflicting rewrite rules

2014-09-04 Thread Wei-min Lee
Thanks for the tip. On Thu, Sep 4, 2014 at 1:47 PM, Rich Bowen rbo...@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