Contents tagged with URL Rewrite
-
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. The two most common actions are the Rewrite and the Redirect.
-
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 from the internal web server, you can do this through the public web server by creating a tunnel (aka reverse proxy).
-
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:
-
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:
-
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.
-
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.
-
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.
-
ARR Binding Trick-Week 36
You can find this week’s video here.
-
Bindings and Rules for ARR-Week 32
You can find this week’s video here.
-
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.