>- see footer for list info -< ISAPI rewrite is an ISAPI filter for IIS. What happens is a request arrives at port 80 on your webserver for a URI (eg http://my.site.com/news/34621/) the ISAPI filter gets the first bite of the cherry which will try and match a pattern for that URL
RewriteRule /news/(\d+)/? /news/index.cfm\?nNewsID=$1 [U,I,L] Which will then transform that request to /news/index.cfm?nNewsID=34621 which is what ColdFusion believes in the request. The browser still thinks it is the requested URL so this is not a client side redirect, but a server side rewrite. ColdFusion is completely ignorant to what the user requested and JavaScript is completely ignorant to the URL that ColdFusion got as the request, these are important to consider. ISAPI rewrite does not alter any links in HTML you need to do that in your code yourself. HTH On Wed, May 14, 2008 at 10:23 AM, Christian Bouet <[EMAIL PROTECTED]> wrote: > >- see footer for list info -< > Sorry to bother you with this seemingly silly and simple question but > I've run out of RTFM's. > > Simple question is: ISAPI_Rewrite is a two way process, no? > > I would assume (ooh, here comes the n00b!) that in-response HTML links > such as <a href="dfsfsd.cfm?bla=1&blu=2"> would be rewritten according > to the rule base when the server is sending out the response. Doesn't > seem to happen here though. > > I have a couple of possible reasons why this doesn't work though > (Windows server/CF8/IIS): > > Option 1 (most likely): We've gotten the implementation of ISAPI_rewrite > wrong. Pointers in the right direction welcome. > > Option 2: When IIS receives a request it detects it as .cfm and hands > over the complete request to the module handling .cfm, which in this > case is CF8. CF8, using JRun, then take over handling of the request > completely and thus bypasses the IIS mods (inc ISAPI_rewrite) on the way > out (response). > > And as a side note, how do you guys use this for sitemaps? We create the > rule base file dynamically and at the same time create the sitemap.xml > to match it. I just have a nagging feeling there's a smarter way to do > it. > > Again, sorry to bother you. I feel really numpty asking this question.. > :) > > Cheers, > Christian > > _______________________________________________ > > For details on ALL mailing lists and for joining or leaving lists, go to > http://list.cfdeveloper.co.uk/mailman/listinfo > > -- > CFDeveloper Sponsors:- > >- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -< > >- Lists hosted by www.Gradwell.com -< > >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -< > -- Simon Baynes www.simonbaynes.com LinkedIn profile:- http://www.linkedin.com/in/simonbaynes _______________________________________________ For details on ALL mailing lists and for joining or leaving lists, go to http://list.cfdeveloper.co.uk/mailman/listinfo -- CFDeveloper Sponsors:- >- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -< >- Lists hosted by www.Gradwell.com -< >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<
