OK, I kept reading and started looking into the Flags and how they work in Apache. I've got the following complete set of RewriteRules (I should have posted them all to begin with!). The change from above to this set of RewriteRules is the flags have changed from [L,PT,QSA] to [L,P,QSA] (PT relates to pass through, but P relates to proxy which is what I'm doing with ajp).
The RewriteRules allow the following urls to work: http://scottmebberson.local/ http://scottmebberson.local/support http://scottmebberson.local/support/ http://scottmebberson.local/index.cfm?objectid=E689D722-06DF-6D24-56726E44740068B5 The only issue now is, that http://scottmebberson.local/farcry or http://scottmebberson.local/farcry/ doesn't work - you need to use http://scottmebberson.local/farcry/index.cfm RewriteEngine On # Proxy access to railo RewriteRule ^/railo/admin/(.*) ajp://scottmebberson.local:8009/railo-context/admin/$1 [P] # Handle static assets without rewrite: RewriteRule ^.*\.(bmp|gif|jpe?g|ico|png|css|js|txt|pdf|doc|xls|xml)$ - [L] # Pass site root request directly to Tomcat: RewriteRule ^/?$ ajp://scottmebberson.local:8009/ [P] # Proxy CFML requests to Tomcat (if file exists): RewriteCond %{DOCUMENT_ROOT}/$1 -f RewriteRule ^/(.*\.cf[cm]l?)(/.*)?$ ajp://scottmebberson.local:8009/$1$2 [P] # Friendly URLs for FarCry RewriteCond %{REQUEST_URI} !(^/farcry|^/webtop|^/flex2gateway|^/ flashservices|^/CFIDE)($1/) RewriteRule ^([a-zA-Z0-9\/\-\%:\[\]\{\}\|\;\<\>\?\,\*...@\#\$\ \(\) \^_`~]*)$ ajp://scottmebberson.local:8009/index.cfm?furl=$1 [L,P,QSA] If anyone has any further ideas to tweak these, that'd be great. -- You received this message cos you are subscribed to "farcry-dev" Google group. To post, email: [email protected] To unsubscribe, email: [email protected] For more options: http://groups.google.com/group/farcry-dev -------------------------------- Follow us on Twitter: http://twitter.com/farcry
