Avatar of MonCapitan
MonCapitan
 asked on

iis 7 url rewrite and asp.net

Hi,

I would like to implement friendly urls to my website. I have a Windows dedicated server with iis 7 on and am using asp.net 3.5.

I have my own script that I wish to run during the request lifecycle that gets the 'real' url when a friendly url is used and so need to know what I have to do to make this happen. What I know so far...

1) I have read you can change iis 7 so it passes control to the .net engine without the need for a file to have a .aspx extention.
2) I have read a bit about the web.config to set up a handler.

I am not sure how to piece all of this together though. Ideally I don't want to touch iis 7 but would rather have a handler run my script when there is a request that has no extention like .aspx.

My question is, what do I need to do to make this happen?

Thank you for your time with this.
ASP.NETMicrosoft IIS Web Server

Avatar of undefined
Last Comment
MonCapitan

8/22/2022 - Mon
Gaurav Singh

disrupt

tanujchandna

Hi,

Your website application pool must be in Integrated mode if you want to use url rewrite. If its in classic mode then url rewrite rules will not work for your website.
Your help has saved me hundreds of hours of internet surfing.
fblack61
ASKER CERTIFIED SOLUTION
MonCapitan

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
MonCapitan

ASKER
The links provided did not answer my question.