We help IT Professionals succeed at work.
Get Started

URL REWRITING IS NOT WORKING ON IIS7

380 Views
Last Modified: 2015-06-11
Hi, I was using URL Rewriting feature on my website.It was working fine on IIS6 Until I switched my computer on Windows7 and hosted on IIS7. Its not working on IIS7.I checked couple of articles and tried adding rule on IIS7 for URL Rewriting, But the solution I got  was adding static URLS.like
/Books/Book1_Details.aspx  and changed to /Books/BookDetails.aspx?TITLE=Book1.
In above scenario I had to add many rule for each link and I don't want that.
      Previously I was using dynamic rules which used to work for many links ons IIS6 code was like that:
<rewriter>
            <rewrite url="~/Books/(.+)_Details.aspx" to="~/Studies/BooksDetails.aspx?TITLE=$1" />
      </rewriter>

 and with all bookids it was working on IIS6,Please tell me how to generate dynamic URL mapping on IIS7.

Regards,
Sudhanshu
Comment
Watch Question
Technical Lead - Active Directory
CERTIFIED EXPERT
Commented:
This problem has been solved!
Unlock 1 Answer and 21 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE