Hi all.
I hope there is someone out there that can answer this for me..
I am cleaning up some old URLS that existed pre farcry that not longer
exist... This is a legacy "pubs" folder that contained a bunch of .pdf
files... Currently requests for these return 404's so I want to
collect some information on them and I am trying to use ReWrite
Rules...
Basically... if someone requests www.mysite.com/pubs/datasheet.pdf I
want ISAP Rewrite to send them to www.mysite.com/404/?pub=datasheet.pdf
I have this rule ALMOST working... The problem is is a request for
www.mysite.com (root) comes in, the Farcry FU system redirects to
404... any other FU such as mysite.com/contact works fine..
This seems to be a problem with specifying ReWriteBase / which I need
for the "pub" rule to work...
My ISAPI config is below... Thoughts?
<VirtualHost www.mysite.com mysite.com>
RewriteEngine On
# 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 fro pubs folder to 404 page with query string
#RewriteBase /
RewriteRule ^pubs/(.+)\.pdf$ /404/?pub=$1.pdf [NC,R=301,L]
# Send away some bots
RewriteCond %{HTTP:User-Agent} (?:YodaoBot|Yeti) [NC]
RewriteRule .? - [F]
#enabling rewrite.log
RewriteLogLevel 9
#enabling error.log
LogLevel debug
</VirtualHost>
--
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