Solved

URL Rewriting IIS

Posted on 2011-03-17
5
261 Views
Last Modified: 2013-07-29
I had done url rewriting in iis6 but because now the site is shifted to another server having iis7.5. The url rewriting has stopped working.

How can I do URL Rewriting in IIS7.5?

it will be good if i can use IIS6's url rewriting in IIS7.5 too instead of doing things from scratch.

0
Comment
Question by:Dinesh Kumar
5 Comments
 
LVL 35

Expert Comment

by:Robert Schutt
ID: 35164144
What is "IIS6's url rewriting" method? wasn't that already something that was installed seperately on your old webserver instead?

if the old method has an export function or you have that data in say an excel sheet you should be able to import that into a new url-rewriting module. I'm not sure how but I read good things about this one: http://urlrewriter.net/ 
0
 
LVL 2

Accepted Solution

by:
enkor earned 250 total points
ID: 35164660
1) Install URL rewriter to your IIS
2) use its GUI or edit web.config (of your app) directly to set up the rules

Example part of web.config into <system.webServer></system.webServer> node:

<rewrite>
      <rules>
        <clear />

        <rule name="gallery list" stopProcessing="true">
          <match url="^phtogallery/?$" />
          <action type="Rewrite" url="photogalleries.aspx" />
        </rule>
        <rule name="gallery detail" stopProcessing="true">
          <match url="^g([0-9]+)-([^/]+)?$" />
          <action type="Rewrite" url="detail-gallery.aspx?id={R:1}" />
        </rule>          
          
      </rules>
    </rewrite>

Open in new window

0
 
LVL 17

Expert Comment

by:Rovastar
ID: 35165852
IIS6 did have microsoft's own rewriting module. You had to install/buy a third party one.

What is this ISAPI filter did you  installed on your IIS6 machine?

So find out what you had before and visit the devs site and see if they have a IIS7 one. Or like robert said export them.

IIS7 has Microsoft's own URLrewrite that many use now.

http://www.iis.net/download/urlrewrite
0
 

Author Comment

by:Dinesh Kumar
ID: 35731312
how can i install URL rewriter in IIS?
0
 

Author Closing Comment

by:Dinesh Kumar
ID: 39365975
Thank you.
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Hosting WCF service on IIS6 with SSL enabled 1 63
Framework versus framework 64 in IIS 8.5 5 121
web.config redirect issues 5 48
Application gets hammered - IIS 2 38
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question