SlideShare una empresa de Scribd logo
1 de 3
Descargar para leer sin conexión
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/

Más contenido relacionado

Más de 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
 

Más de 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
 

Último

FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusZilliz
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfOverkill Security
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Zilliz
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsNanddeep Nachan
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024The Digital Insurer
 

Último (20)

FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 

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/