• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1425
  • Last Modified:

IIS7: ISAPI Rewrite

Hi All,

I have a script i want to run against all traffic for a single website, what is the best way to impliment this within IIS7?

So the script will need to run against all URL variations.

I had thought about changing the error 404, but thought this was a bit untidy.  Could this be achieved using ISAPI Rewrite?

Any other suggestions?
0
detox1978
Asked:
detox1978
  • 3
  • 2
1 Solution
 
cj_1969Commented:
I think ISAPI is the way to go.
Intercept All requests at the root of the site and then pass the request through and process the page.  

Yes, an error message could also do it ... you could force https or something, do your processing and then pass the request on to something/somewhere else ... but as you said, that would be "messy".  One way that this might actually pass muster is if you do this through a two site scenario.  Intercept all requests with a page cannot be found message, do your processing and then pass the request to another site.

ISAPI is probably the way to go but the other is completely free   :)
0
 
detox1978Author Commented:
I have Helicon ISAPI Rewrite 3 installed for another site, which I managed to get working (eventually).

Do you know what the code i would need to put in would be?
0
 
detox1978Author Commented:
Here is the application notes;

http://www.isapirewrite.com/docs/


Still lots on what to put....
0
 
detox1978Author Commented:
worked it out... :)
0
 
cj_1969Commented:
I'm glad you got it working ... getting the re-write rules right is the hardest part of the process  :)
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now