SlideShare ist ein Scribd-Unternehmen logo
1 von 3
Downloaden Sie, um offline zu lesen
Differences between IIS URL Rewriting and ASP.NET Routing

     S.No   URL Rewriting                      ASP.NET Routing


     1      Meaning:                           Meaning:
            URL rewriting consists of          ASP.NET routing extracts specific
            certain regular expression         values from the URL, based on a
            patterns that match an             pattern. These extracted values
            incoming request URL and           can be used to determine the
            forward the request to a           handler that will handle the
            mapped URL instead. For            request. We can also use these
            example, one might create a        patterns to generate a URL that will
            URL rewriting rule that            map to a specific handler.
            forwards an incoming request
            for
            http://www.example.com/Produ
            cts/Beverages to another URL
            of
            http://www.example.com/Produ
            cts/Show.aspx?id=5

     2      Does it alter the request /        Does it alter the request /
            incoming URL ?                     incoming URL ?
            URL rewriting alters the           ASP.NET routing is different. It
            request URL and forwards it to     does not alter the incoming URL.
            another URL.

     3      When URL Rewriting is right        When ASP.NET Routing is right
            choice ?                           choice ?
            IIS URL rewriting is a generic     ASP.NET routing is a solution that
            URL manipulation mechanism         is optimized for ASP.NET, thus it
            that addresses a multitude of      may be preferable for Web
            scenarios. In particular, it can   developers who design their
            be used by Web developers as       ASP.NET applications from the
            well as Web server/site            ground up and want to have a
            administrators to enable clean     clean URL structure.
            URLs for existing Web
            applications without modifying
            the application code.

     4      For what type of                   For what type of application(s)
            application(s) URL Rewriting       ASP.NET Routing can be used ?
            can be used ?                      ASP.NET routing can be used only
            The IIS URL Rewrite module         with .NET Framework-based Web
            can be used with any type of       applications.
            Web application, which
            includes ASP.NET, PHP, ASP,
            and static files.

     5      Does it extensible and             Does it extensible and
            customizable ?                     customizable ?
The URL Rewrite module is not ASP.NET routing is fully extensible
              extensible in its current     and customizable.
              version.

      6       What tasks it can perform ?        What tasks it can perform ?
              In addition to rewriting, the      ASP.NET routing does not perform
              URL Rewrite module can             these tasks.
              perform HTTP redirection,
              issue custom status codes,
              and abort requests.

      7       Application Area:                  Application Area:
              The IIS URL Rewrite module         By default, ASP.NET routing works
              can make rewriting decisions       only with URL paths and with the
              based on domain names,             HTTP-Method header.
              HTTP headers, and server
              variables.

      8       IIS pipeline mode or               IIS pipeline mode or Integrated
              Integrated pipeline mode ?         pipeline mode ?
              The IIS URL Rewrite module         For ASP.NET routing, it is
              works the same way                 preferable to use integrated
              regardless of whether              pipeline mode. ASP.NET routing
              integrated or classic IIS          can work in classic mode, but in
              pipeline mode is used for the      that case the application URLs
              application pool.                  must include file name extensions
                                                 or the application must be
                                                 configured to use "*" handler
                                                 mapping in IIS.

Summary:

IIS Rewiting & ASP.NET Routing:
"Either IIS URL rewriting or ASP.NET routing can be used to implement URL manipulation
scenarios for your Web application. " - By Ruslan Yakushev

Main advantage of ASP.NET Routing:
It keeps the request-resource resolution logic within your application, so it's very easy to
add application-dependent logic when you need, and it eliminates the need to maintain
synchronization between your application and a separate configuration resource.
Routing works great with traditional webforms.

References:

http://my.safaribooksonline.com/book/web-development/microsoft-
aspdotnet/9781847197542/routing/ch05lvl1sec02

http://www.iis.net/learn/extensions/url-rewrite-module/iis-url-rewriting-and-aspnet-routing

http://seow3c.blogspot.in/2012/04/differences-between-iis-url-rewriting.html
http://stackoverflow.com/questions/915771/url-rewriting-vs-routing

And, further updates on difference between questions and answers, please visit my
blog @ http://onlydifferencefaqs.blogspot.in/

Weitere ähnliche Inhalte

Mehr von Umar Ali

Affiliate Networks Sites-1
Affiliate Networks Sites-1Affiliate Networks Sites-1
Affiliate Networks Sites-1Umar Ali
 
Technical Video Training Sites- 1
Technical Video Training Sites- 1Technical Video Training Sites- 1
Technical Video Training Sites- 1Umar Ali
 
US News Sites- 1
US News Sites- 1 US News Sites- 1
US News Sites- 1 Umar Ali
 
How to create user friendly file hosting link sites
How to create user friendly file hosting link sitesHow to create user friendly file hosting link sites
How to create user friendly file hosting link sitesUmar Ali
 
Weak hadiths in tamil
Weak hadiths in tamilWeak hadiths in tamil
Weak hadiths in tamilUmar Ali
 
Bulughul Maram in tamil
Bulughul Maram in tamilBulughul Maram in tamil
Bulughul Maram in tamilUmar Ali
 
Asp.net website usage and job trends
Asp.net website usage and job trendsAsp.net website usage and job trends
Asp.net website usage and job trendsUmar Ali
 
Indian news sites- 1
Indian news sites- 1 Indian news sites- 1
Indian news sites- 1 Umar Ali
 
Photo sharing sites- 1
Photo sharing sites- 1 Photo sharing sites- 1
Photo sharing sites- 1 Umar Ali
 
File hosting search engines
File hosting search enginesFile hosting search engines
File hosting search enginesUmar Ali
 
Ajax difference faqs compiled- 1
Ajax difference  faqs compiled- 1Ajax difference  faqs compiled- 1
Ajax difference faqs compiled- 1Umar Ali
 
ADO.NET difference faqs compiled- 1
ADO.NET difference  faqs compiled- 1ADO.NET difference  faqs compiled- 1
ADO.NET difference faqs compiled- 1Umar Ali
 
Dotnet differences compiled -1
Dotnet differences compiled -1Dotnet differences compiled -1
Dotnet differences compiled -1Umar Ali
 
.NET Differences List
.NET Differences List.NET Differences List
.NET Differences ListUmar Ali
 
Difference between ajax and silverlight
Difference between ajax and silverlightDifference between ajax and silverlight
Difference between ajax and silverlightUmar Ali
 
Difference between is and as operators in c#
Difference between is and as operators in c#Difference between is and as operators in c#
Difference between is and as operators in c#Umar Ali
 
Difference between c# generics and c++ templates
Difference between c# generics and c++ templatesDifference between c# generics and c++ templates
Difference between c# generics and c++ templatesUmar Ali
 
Var vs iEnumerable
Var vs iEnumerableVar vs iEnumerable
Var vs iEnumerableUmar Ali
 
Differences between get children() and getdescendants() methods
Differences between get children() and getdescendants() methodsDifferences between get children() and getdescendants() methods
Differences between get children() and getdescendants() methodsUmar Ali
 
Ruby on rails vs asp.net mvc
Ruby on rails vs asp.net mvcRuby on rails vs asp.net mvc
Ruby on rails vs asp.net mvcUmar Ali
 

Mehr von Umar Ali (20)

Affiliate Networks Sites-1
Affiliate Networks Sites-1Affiliate Networks Sites-1
Affiliate Networks Sites-1
 
Technical Video Training Sites- 1
Technical Video Training Sites- 1Technical Video Training Sites- 1
Technical Video Training Sites- 1
 
US News Sites- 1
US News Sites- 1 US News Sites- 1
US News Sites- 1
 
How to create user friendly file hosting link sites
How to create user friendly file hosting link sitesHow to create user friendly file hosting link sites
How to create user friendly file hosting link sites
 
Weak hadiths in tamil
Weak hadiths in tamilWeak hadiths in tamil
Weak hadiths in tamil
 
Bulughul Maram in tamil
Bulughul Maram in tamilBulughul Maram in tamil
Bulughul Maram in tamil
 
Asp.net website usage and job trends
Asp.net website usage and job trendsAsp.net website usage and job trends
Asp.net website usage and job trends
 
Indian news sites- 1
Indian news sites- 1 Indian news sites- 1
Indian news sites- 1
 
Photo sharing sites- 1
Photo sharing sites- 1 Photo sharing sites- 1
Photo sharing sites- 1
 
File hosting search engines
File hosting search enginesFile hosting search engines
File hosting search engines
 
Ajax difference faqs compiled- 1
Ajax difference  faqs compiled- 1Ajax difference  faqs compiled- 1
Ajax difference faqs compiled- 1
 
ADO.NET difference faqs compiled- 1
ADO.NET difference  faqs compiled- 1ADO.NET difference  faqs compiled- 1
ADO.NET difference faqs compiled- 1
 
Dotnet differences compiled -1
Dotnet differences compiled -1Dotnet differences compiled -1
Dotnet differences compiled -1
 
.NET Differences List
.NET Differences List.NET Differences List
.NET Differences List
 
Difference between ajax and silverlight
Difference between ajax and silverlightDifference between ajax and silverlight
Difference between ajax and silverlight
 
Difference between is and as operators in c#
Difference between is and as operators in c#Difference between is and as operators in c#
Difference between is and as operators in c#
 
Difference between c# generics and c++ templates
Difference between c# generics and c++ templatesDifference between c# generics and c++ templates
Difference between c# generics and c++ templates
 
Var vs iEnumerable
Var vs iEnumerableVar vs iEnumerable
Var vs iEnumerable
 
Differences between get children() and getdescendants() methods
Differences between get children() and getdescendants() methodsDifferences between get children() and getdescendants() methods
Differences between get children() and getdescendants() methods
 
Ruby on rails vs asp.net mvc
Ruby on rails vs asp.net mvcRuby on rails vs asp.net mvc
Ruby on rails vs asp.net mvc
 

Kürzlich hochgeladen

Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesZilliz
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfSeasiaInfotech2
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 

Kürzlich hochgeladen (20)

Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector Databases
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdf
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 

Differences between iis url rewriting and asp.net routing

  • 1. Differences between IIS URL Rewriting and ASP.NET Routing S.No URL Rewriting ASP.NET Routing 1 Meaning: Meaning: URL rewriting consists of ASP.NET routing extracts specific certain regular expression values from the URL, based on a patterns that match an pattern. These extracted values incoming request URL and can be used to determine the forward the request to a handler that will handle the mapped URL instead. For request. We can also use these example, one might create a patterns to generate a URL that will URL rewriting rule that map to a specific handler. forwards an incoming request for http://www.example.com/Produ cts/Beverages to another URL of http://www.example.com/Produ cts/Show.aspx?id=5 2 Does it alter the request / Does it alter the request / incoming URL ? incoming URL ? URL rewriting alters the ASP.NET routing is different. It request URL and forwards it to does not alter the incoming URL. another URL. 3 When URL Rewriting is right When ASP.NET Routing is right choice ? choice ? IIS URL rewriting is a generic ASP.NET routing is a solution that URL manipulation mechanism is optimized for ASP.NET, thus it that addresses a multitude of may be preferable for Web scenarios. In particular, it can developers who design their be used by Web developers as ASP.NET applications from the well as Web server/site ground up and want to have a administrators to enable clean clean URL structure. URLs for existing Web applications without modifying the application code. 4 For what type of For what type of application(s) application(s) URL Rewriting ASP.NET Routing can be used ? can be used ? ASP.NET routing can be used only The IIS URL Rewrite module with .NET Framework-based Web can be used with any type of applications. Web application, which includes ASP.NET, PHP, ASP, and static files. 5 Does it extensible and Does it extensible and customizable ? customizable ?
  • 2. The URL Rewrite module is not ASP.NET routing is fully extensible extensible in its current and customizable. version. 6 What tasks it can perform ? What tasks it can perform ? In addition to rewriting, the ASP.NET routing does not perform URL Rewrite module can these tasks. perform HTTP redirection, issue custom status codes, and abort requests. 7 Application Area: Application Area: The IIS URL Rewrite module By default, ASP.NET routing works can make rewriting decisions only with URL paths and with the based on domain names, HTTP-Method header. HTTP headers, and server variables. 8 IIS pipeline mode or IIS pipeline mode or Integrated Integrated pipeline mode ? pipeline mode ? The IIS URL Rewrite module For ASP.NET routing, it is works the same way preferable to use integrated regardless of whether pipeline mode. ASP.NET routing integrated or classic IIS can work in classic mode, but in pipeline mode is used for the that case the application URLs application pool. must include file name extensions or the application must be configured to use "*" handler mapping in IIS. Summary: IIS Rewiting & ASP.NET Routing: "Either IIS URL rewriting or ASP.NET routing can be used to implement URL manipulation scenarios for your Web application. " - By Ruslan Yakushev Main advantage of ASP.NET Routing: It keeps the request-resource resolution logic within your application, so it's very easy to add application-dependent logic when you need, and it eliminates the need to maintain synchronization between your application and a separate configuration resource. Routing works great with traditional webforms. References: http://my.safaribooksonline.com/book/web-development/microsoft- aspdotnet/9781847197542/routing/ch05lvl1sec02 http://www.iis.net/learn/extensions/url-rewrite-module/iis-url-rewriting-and-aspnet-routing http://seow3c.blogspot.in/2012/04/differences-between-iis-url-rewriting.html
  • 3. http://stackoverflow.com/questions/915771/url-rewriting-vs-routing And, further updates on difference between questions and answers, please visit my blog @ http://onlydifferencefaqs.blogspot.in/