This forum has been moved here:
Helicon Tech Community Forum

ISAPI_Rewrite 3.0 (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 3.0
Subject Topic: Rewrite Handler on IIS 7.5
Author
Message |
webdeveloper
Newbie


Joined: 18 January 2012
Posts: 3
Posted: 18 January 2012 at 12:07pm

Recently upgraded our servers from iis6 to iis7.5 and rewrite 3.0.

Site configuration has the ISAPI_RewriteProxy as the first Handler however, when accessing non-static files (aspx, etc.) the request first hits the .net engine and the Global_Asax_BeginRequest event is fired. but when accessing a static file (.gif, .jpeg, etc.) the request first hits the rewrite handler and then the .net handler.

The result (or one of the results) is that at the time the server tries to resolve the page the url was still not rewritten and it therefore returns a 404. Another affect is that I cannot rewrite headers. (I was able to prove this by enabling rewrite logging.)

Is there anything that can be done? Is there an alternate solution?
Back to Top
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 19 January 2012 at 4:50am

Hello,

Please, try using the following line on top of your config file:

Code:
NotificationType=PREPROC_HEADERS


Regards
Andrew
Back to Top
 
webdeveloper
Newbie


Joined: 18 January 2012
Posts: 3
Posted: 19 January 2012 at 8:53am

this does not seem to have solved the issue.
I have some code that writes all request headers in the constructor of a page. I also added a rewrite rule to change the value of a specific header. it seems that this header is not being rewritten before getting to the constructor.

Thanks for your help
Back to Top
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 20 January 2012 at 4:13am

Is there a way you can provide your ruls and code of the page?

Regards
Andrew
Back to Top
 
webdeveloper
Newbie


Joined: 18 January 2012
Posts: 3
Posted: 20 January 2012 at 8:38am

It seems to have kicked in now. is there something that needed to be done? (maybe restarting iis or application pool?)

Thank you very much for your help.
Back to Top
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 23 January 2012 at 5:19am

No, ISAPI_Rewrite is correctly installed and permissions are set correctly, than rules will be applied immediately.

Please, see the permissions article.

Regards
Andrew
Back to Top
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version