House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Search cf-talk

July 04, 2009

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31   

Home / Groups / ColdFusion Talk (CF-Talk)

(ot) Ionic's Isapi Rewrite Filter and Site Crash

Author:
Michael Dinowitz
01/07/2009 10:52 PM

I had the same problem at one point and I think it turned out to be a bad regex. A few questions: 1. is the ini file of the same filename as the dll and are they in the same directory? 2. are you making sure that the rewriterule is both case insensitive and is set to be the last rule checked? 3. have you put an index.cfm into the "www.mysite.com/attorney/bob_smith" directory and looked at the page results in debug mode (or dumped out the cgi vars)? As it stands now, the regex will fail if "www.mysite.com/attorney/bob_smith/" is the page requested. It will also fail for any subdirectories of bob_smith or any file in the bob_smith directory. If your goal is to always get the subdirectory directly under attorney then use this: RewriteRule  ^/attorney/([^/]+)   /lawyers/get-bio.cfm?attorney=$1 [I,L] This will avoid any problems with a trailing slash or file name in the request. As a side note, bob-smith is more valuable seo wise. Google looks at a dash as a space. An underscore is a literal underscore character, not a space. > If anybody is familiar with Ionic's Isapi Rewrite Filter... > > I have asked folks over on the Ionic's forum about this, but there's not > much traffic there and I *bet* somebody here can answer before I get > replies. Sorry for the OT, but I need to figure this out sooner than later! > > First, I'm *not* a server administrator. I know just enough to make > small tweaks and get myself into trouble. So be kind! > > Trying to set up my first rewrite: > > RewriteRule  ^/attorney/([^/]+)$   /lawyers/get-bio.cfm?attorney=$1 > > Should rewrite: "www.mysite.com/attorney/bob_smith" to > "www.mysite.com/lawyers/get-bio.cfm?attorney=bob_smith". Correct? The > code above is the *only* thing in the .ini file. Do I need anything else? > > I placed the .dll and .ini file in a folder on the server. Went into the > IIS Admin (IIS 7 I think...) and added the.dll to the ISAPI filters. > Didn't do anything else. Was planning on restarting the server late this > evening when site activity was quite.However, the site immediately went > down. "There's a problem with the resource you're trying to access.... > 500 error...' > > I removed the filter from the ISAPI filter window, and the site was back > up. Tried a second time just to be sure. Yup - site went down > immediately. No stop/start IIS. > > OK, now I'm afraid to do anything else. I can't afford to take the site > down again by mistake. > > I'll happily attempt to list other settings or stuff from log files if > needed to help me figure what I've got wrong. You *might* have to tell > me where to look though... > > The site in question is a Coldfusion site, but sections are .net. There > are two aspnet_filters listed already. Possible conflict? > > Log file shows: "The HTTP Filter DLL > C:\Windows\System32\IsapiRewrite\IsapiRewrite4.dll failed to load.  The > data is the error." > > Not sure what to do next. Help? > >


Mailing Lists