With some of the updates to the 5.1 handling of friendly URLs, the
older rewrite rule is no longer valid for the Ionic filter.  I need
someone (other than me and Jeff) to eyeball and try these rules to see
if they work for you.

A caveat that I've found:

*  If you're using a .swf, .xml, or any *.something that takes
parameters on the URL string, it will pass all the rewrite conditions
and be made into a /index.cfm?furl= string.  You need to add it into
the exclude list (or the folder wherein it lies) to prevent this.  If
there be any REGEX gurus that can make this work any better, please
come forth and make it so ;).

Instructions for installing the filiter:

   1. If you just want to test with a single website, grab the IONIC
1.2.15.  If you want to use this on multiple sites on the same
machine, grab 2.0a.  It really doesn't matter as the script works on
both.
   2. Inside the zip, you'll find a lib folder.  The two different
code branches have diffrerent DLLs names and INI names.
         1. 1.2.15:  Doesn't matter where you put it, just not in the
webroot.  Put the IsapiRewrite4.dll and IsapiRewrite4.ini file in a
separate folder (good to only have them in there by themselves).
         2. 2.0a:  Again, put it where you want, but not in the
webroot (for 2 of 3 files).  Put the IirfGlobal.ini and Iirf.dll in
the same folder.  Place a Iirf.ini in your webroot.
   3. The script I send should be used in either case for either
Iirf.ini, or IsapiRewrite4.ini.  Don't touch the IirfGlobal.ini, it
only takes the options already in the file.
   4. Windows permissions seem to be the biggest gotcha here.  The
files all seem to need, at minimum, IIS_WPG and IUSER_.  Mine also
have Users, SYSTEM, and Administrators if it just the first two don't
work for you.
   5. Open up the IIS Admin tool.
   6. Click on web service extensions, and add a new extension for
"Ionic Rewriter" (doesn't matter, but I think you need to be
consistant here) and choose the appropriate DLL (depending on 1.2.15,
2.0a).  Be sure to check the box to set for allowed.
   7. Depending on the level you want to filter at (all sites, just
one site) right click and get properties.  Click on the ISAPI Filters
tab and add the appropriate DLL and click apply or OK (doesn't
matter).
   8. Restart the IIS admin (should restart all of the various
services too).


Rewrite rule:

# FarCry.ini
#

RewriteLog  c:\temp\iirfLog.out
RewriteLogLevel 0
# Set to any level but 1-9 to show logging.  The folder needs the same
rights as the DLL and INI.  The folder must already exist before hand.

# MaxMatchCount
#
# Specifies the maximum number of sub-expression matches to
# capture for a single pattern. This specifies the size of the
# array in the C module.  If you have a pattern with more than
# the default number of matches, set this number.
#
# The default is 10.

MaxMatchCount 10


# Firstly, let's make sure that the URL is not an admin function.  The
"!" does not work here
# So it was removed.  Added [L] to stop processing other rules for
recursion issues.
RewriteCond %{HTTP_URL} (^/farcry|^/webtop|^/
flex2gateway|^/flashserviReces|^/cfide)($|/)
RewriteRule ^(.*)$ $1 [L]


# Next, if it doesn't match the above, let's to see if there's a "?"
in the string and rewrite it to be
# a "&".  This is to catch cases like /something/?this=here.  We stop
processing here to
# prevent going all circular in our logic using the "[L]".
RewriteCond %{HTTP_URL} (.*)(\?)(.*)
RewriteRule (.*)(\?)(.*) /index.cfm?furl=$1&$3 [L]

# Accounts for cases where we already have an "/index.cfm?" type
string
RewriteCond %{HTTP_URL} (^\.index.cfm)
RewriteRule ^(.*)$ $1

# Last, failing all else, rewrite the string to the normal furl
sequence.  Removed the checking
# for a space from the WIKI as it breaks for IONIC.

RewriteRule ^([a-zA-Z0-9\/\-\%:\[\]\{\}\|\;\<\>\?\,\*...@\#\$\(\)\^_`~]
*)$ /index.cfm?furl=$1
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"farcry-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/farcry-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to