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

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

Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptxHarnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
FIDO Alliance
 
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
FIDO Alliance
 
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider  Progress from Awareness to Implementation.pptxTales from a Passkey Provider  Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
FIDO Alliance
 

Último (20)

ADP Passwordless Journey Case Study.pptx
ADP Passwordless Journey Case Study.pptxADP Passwordless Journey Case Study.pptx
ADP Passwordless Journey Case Study.pptx
 
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptxHarnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
 
ERP Contender Series: Acumatica vs. Sage Intacct
ERP Contender Series: Acumatica vs. Sage IntacctERP Contender Series: Acumatica vs. Sage Intacct
ERP Contender Series: Acumatica vs. Sage Intacct
 
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...
 
Easier, Faster, and More Powerful – Notes Document Properties Reimagined
Easier, Faster, and More Powerful – Notes Document Properties ReimaginedEasier, Faster, and More Powerful – Notes Document Properties Reimagined
Easier, Faster, and More Powerful – Notes Document Properties Reimagined
 
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdfHow Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
 
Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024
 
State of the Smart Building Startup Landscape 2024!
State of the Smart Building Startup Landscape 2024!State of the Smart Building Startup Landscape 2024!
State of the Smart Building Startup Landscape 2024!
 
Event-Driven Architecture Masterclass: Challenges in Stream Processing
Event-Driven Architecture Masterclass: Challenges in Stream ProcessingEvent-Driven Architecture Masterclass: Challenges in Stream Processing
Event-Driven Architecture Masterclass: Challenges in Stream Processing
 
(Explainable) Data-Centric AI: what are you explaininhg, and to whom?
(Explainable) Data-Centric AI: what are you explaininhg, and to whom?(Explainable) Data-Centric AI: what are you explaininhg, and to whom?
(Explainable) Data-Centric AI: what are you explaininhg, and to whom?
 
Intro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджераIntro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджера
 
How we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdfHow we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdf
 
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdfWhere to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
 
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
 
Working together SRE & Platform Engineering
Working together SRE & Platform EngineeringWorking together SRE & Platform Engineering
Working together SRE & Platform Engineering
 
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
 
Introduction to FIDO Authentication and Passkeys.pptx
Introduction to FIDO Authentication and Passkeys.pptxIntroduction to FIDO Authentication and Passkeys.pptx
Introduction to FIDO Authentication and Passkeys.pptx
 
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
 
2024 May Patch Tuesday
2024 May Patch Tuesday2024 May Patch Tuesday
2024 May Patch Tuesday
 
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider  Progress from Awareness to Implementation.pptxTales from a Passkey Provider  Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
 

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/