Thanks for trying Sean, but I get the same result ... FUs work, access
to /pub/myfile.pdf redirects to /404?pub=myfile.pdf but id I try to
click a home link or go to www.mysite.com I get redirected to the
farcry 404... looks like /index.cfm = 302 and redirects to 404 page..
This only happens when trying to hit the main home page at /
here's the IIS log.
2012-02-01 22:21:00 W3SVC1719811545 10.1.33.115 GET /index.cfm furl=
80 - 10.3.7.28 Mozilla/5.0+(Windows+NT+6.1;+WOW64)+AppleWebKit/535.7+
(KHTML,+like+Gecko)+Chrome/16.0.912.77+Safari/535.7 302 0 0
2012-02-01 22:21:02 W3SVC1719811545 10.1.33.115 GET /index.cfm
furl=404 80 - 10.3.7.28 Mozilla/5.0+(Windows+NT
+6.1;+WOW64)+AppleWebKit/535.7+(KHTML,+like+Gecko)+Chrome/
16.0.912.77+Safari/535.7 200 0 0
ISAPI config.
# Ignore dirctories from FarCry Friendly URL processing
RewriteCond %{REQUEST_URI} !(^/pubs|^/_devel|^/farcry|^/webtop|^/
flex2gateway|^/flashservices|^/cfide|^/cfdocs)($|/)
RewriteRule ^([a-zA-Z0-9\/\-\%:\[\]\{\}\|\;\<\>\?\,\*\!\@\#\$\ \(\)
\^_`~]*)$ /index.cfm?furl=$1 [L,PT,QSA]
# redirect all request for pubs folder to 404 page with query string
RewriteCond %{REQUEST_URI} (^/pubs/)
RewriteBase /
RewriteRule ^pubs/(.+)\.pdf$ /404/?pub=$1.pdf [NC,R=301,L]
On Jan 31, 11:25 am, Sean Coyne <[email protected]> wrote:
> You need to use a RewriteCond so that it will only rewrite the 404 URLs if
> they match a pattern.
>
> Try putting this before your RewriteRule:
>
> RewriteCond %{REQUEST_URI} (^/pubs/)
>
> That "should" (untested) only rewrite the urls in the /pubs/ directory.
> Hopefully none of your FUs start with /pubs/.
>
> Sean
--
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