Scott Forsyth's Blog

Postings on IIS, ASP.NET, SQL Server, Webfarms and general system admin.

Cloud Resources

IIS Resources

Browse by Tags

All Tags » URL Rewrite (RSS)
URL Rewrite vs. Redirect; What’s the difference?
IIS URL Rewrite has five different types of actions. They are: Rewrite , Redirect , Custom Response , Abort Request , and None . And if you have ARR (Application Request Routing) installed, then at the server level you’ll also see Route to Server Farm...
Posted: Jan 29 2014, 12:17 PM by OWScott | with 3 comment(s)
Filed under: , , ,
Creating a Reverse Proxy with URL Rewrite for IIS
There are times when you need to reverse proxy through a server. The most common example is when you have an internal web server that isn’t exposed to the internet, and you have a public web server accessible to the internet. If you want to serve up traffic...
Posted: Oct 24 2013, 01:18 PM by OWScott | with 14 comment(s)
Filed under: , , , ,
Prepending www to 2nd level domain names
A fairly common request for URL Rewrite is to prepend a www to all 2nd level domains, regardless of the domain name. Consider the following domain names: http://domain1.com http://domain2.net https://domain3.org Following is an IIS URL Rewrite rule which...
Posted: Sep 21 2013, 11:21 AM by OWScott | with no comments
Filed under: , , ,
Handing MVC paths with dots in the path
A friend of mine asked me recently how to handle a situation with a dot (.) in the path for an MVC project.  The path looked something like this: http://domain.com/aspnet/CLR4.0 The MVC routes didn’t work for this path and the standard IIS 404 handler...
URL Rewrite – Protocol (http/https) in the Action
IIS URL Rewrite supports server variables for pretty much every part of the URL and http header. However, there is one commonly used server variable that isn’t readily available.  That’s the protocol—HTTP or HTTPS. You can easily check if a page...
Posted: Nov 07 2012, 10:04 AM by OWScott | with 5 comment(s)
Filed under: , , , ,
Redirecting Non-www to Domain Equivalent
A question came up on a blog post of mine on how to redirect a domain name that doesn’t have www in it while retaining the original domain name.  Basically, to have a generic redirect to add on a www if it’s not already there. For example, how could...
Posted: Jan 05 2012, 10:00 AM by OWScott | with 25 comment(s)
Filed under: , ,
URL Rewrite city.domain.com to domain.com/city
An IIS 7.x URL Rewrite question that comes up often is how to redirect something.domain.com to domain.com/city. Here’s an example URL Rewrite rule to accomplish that: < rule name ="CName to URL" stopProcessing ="true" > <...
Posted: Nov 23 2011, 02:09 PM by OWScott | with 18 comment(s)
Filed under: , ,
ARR Binding Trick-Week 36
You can find this week’s video here . This week's video shows a specific trick to allow a reverse proxy—Application Request Routing in this case—how to use only one IP address per web servers while supporting many distinct sites. This is extra useful...
Bindings and Rules for ARR-Week 32
You can find this week’s video here . This week we take a look at how to leverage URL Rewrite for Application Request Routing (ARR) to create different rules for different virtual IP's (VIP's). This is week 32 of a 52 week series for the web pro. Picking...
Using IP Restrictions with URL Rewrite-Week 25
URL Rewrite offers tremendous flexibility for customizing rules to your environment. One area of functionality that is often desired for URL Rewrite is to allow a large list of approved or denied IP addresses and subnet ranges. IIS’s original IP Restrictions...
More Posts Next page »