We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you a podcast all about Citrix Workspace, moving to the cloud, and analytics & intelligence. Episode 2 coming soon!Listen Now

x

IIS7: ISAPI Rewrite

detox1978
detox1978 asked
on
Medium Priority
1,471 Views
Last Modified: 2012-05-06
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?
Comment
Watch Question

CERTIFIED EXPERT
Commented:
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   :)

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

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?

Author

Commented:
Here is the application notes;

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


Still lots on what to put....

Author

Commented:
worked it out... :)
CERTIFIED EXPERT

Commented:
I'm glad you got it working ... getting the re-write rules right is the hardest part of the process  :)
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.