Scott Forsyth's Blog

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

.

  • Scott Forsyth

Hosting Needs

Training and Dev Labs

Browse by Tags

All Tags » URL Rewrite (RSS)
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 2 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 24 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...
URL Rewrite Outbound Rules–and ServerNameVariable-Part 14 of 52
As you may be guessing already, I’m a big fan of URL Rewrite for IIS.  Today I cover Outbound rules, providing demos on changing the content in-flight and adding Server Variables (HTTP headers) for the browser. Also, in the 2nd half of the video...
URLRewrite ServerNameVariable Provider
IIS URL Rewrite is a powerful tool that I’ve grown quite fond of.  One variable that URL Rewrite doesn’t have, which I wish it did, is the Server Name (Machine Name, Computer Name, whatever you want to call it).  The server name isn’t a normal...
SiteServerDetails–Obtaining information about a server node in a web farm—Part 13 of 52
This week I cover a couple ways to obtain information about a specific server in a web farm.  How can you tell which node handled your page request? Often it’s valuable to know which node is currently being served for troubleshooting the load balancer...
More Posts Next page »