Skip to main content
Known Participant
September 16, 2013
Question

ColdFusion with IIS URL Rewrite - Page never finishes loading

  • September 16, 2013
  • 2 replies
  • 6543 views

I am running CF10 on IIS 7.5 with URL Rewrite module installed.

All the rewrite rules work perfectly and ColdFusion is returning the correct pages. In order to get the page displayed in the browser I have to manually set the 'content-length' value in Application.cfc like this:

<cfcomponent>

<cffunction name="onRequestEnd">

<cfheader name="Content-Length" value="#getPageContext().getCFOutput().getBuffer().size()#" />

</cffunction>

</cfcomponent>

Without this code the browser does not display the page. However, even though it is now displaying the page, it is not doing it correctly. The page never finishes loading fully and not all of the HTML content seems to be on the page.


I have tried to add a <cfflush> tag after setting the 'content-length' but it makes no difference. I don't understand why this is happening but I know that it has happened to someone else who was using htaccess: http://forums.devshed.com/coldfusion-development-84/page-not-finishing-loading-coldfusion-and-htaccess-bug-575906.html

Can anyone please help?

This topic has been closed for replies.

2 replies

Inspiring
August 15, 2014

Hi guys,

I would like to do url rewriting on our CF app but am worried I'll break something if I try and do it myself - is there anyone who would be interested in a bit of consultancy to help us achieve this?

I want to turn http://www.allchichesterjobs.com/search-results.cfm?sector=21&q=part-time-jobs

into http://www.allchichesterjobs.com/part-time-jobs

I've tried this using IIS and URL Rewrite, when I browsed to http://www.allchichesterjobs.com/search-results.cfm?sector=21&q=part-time-jobs

my browser was redirected to http://www.allchichesterjobs.com/part-time-jobs ok - but then I got a 404 error

I'm wondering if I can pay someone to remote view my screen while we talk on skype and tell me what to do?

Hope it's ok to post this sort of request on here

Thanks very much indeed.

Nick

solacedAuthor
Known Participant
August 18, 2014

happysailingdude I can help you out. PM me.

Legend
September 17, 2013

Try installing ISAPI rewrite Lite (free) and see if it works with that. We use it with CF 10/IIS 8 and it works great. if it works, it looks to be an issue with your rewriter module.

solacedAuthor
Known Participant
September 17, 2013

This was my thought as well, to try out an helicon product. They're currently promoting something called Ape for IIS 7+ users but I'm pretty sure its only the Rewrite function that I need so I'll try out ISAPI Rewrite

Legend
September 17, 2013

I also tried Ape and it did not work for us on the first attempt, so I went back to using Helicon. Their product is also very well supported and documented, which is a major reason for using it.