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 ^/$ /default.page [L,R=301]
RewriteRule ^/folderx/$ /folderx/index.html [L,R=301]
ProxyPreserveHost On
Everything is working as desired, but now I'm trying to introduce page type rewrites with exceptions to the main rule. Meaning...
1 - all requests for .html?$, .aspx?$, etc, should be rewritten as $1.page
2 - exclude /folderx/(.*)\.html?$ from rule 1
Any guidance and/or critiques to what I have so far would be appreciated.
Thanks.