Questions tagged [url-rewrite-module]

Microsoft's URL Rewrite Module is a module for IIS 7 that lets website owners create custom rewrite rules for their site.

Microsoft's URL Rewrite Module is a module for IIS 7 that lets website owners create custom rewrite rules for their site.

More information:

780 questions
123
votes
4 answers

How can I enable "URL Rewrite" Module in IIS 8.5 in Server 2012?

I have windows server 2012 and I have installed the IIS 8.5 but I could not see the URL rewrite module. How can I enable or install?
Tushar Maru
  • 3,347
  • 10
  • 34
  • 53
96
votes
10 answers

Windows 8.1 / Windows 10 breaks my ASP.NET / IIS : "Service unavailable"

With Windows 8.1 finally released to MSDN/Technet today I came across the following issue running my ASP.NET application after doing an in place upgrade with Win 8.1 RTM: Service Unavailable HTTP Error 503. The service is unavailable. The AppPool…
Simon_Weaver
  • 140,023
  • 84
  • 646
  • 689
41
votes
4 answers

Rewriting URLs from https:// to http:// in IIS7

I'm trying to rewrite urls from the form: https://example.com/about to the form http://example.com/about using IIS7 URL rewriting:
Jeff Atwood
  • 63,320
  • 48
  • 150
  • 153
32
votes
4 answers

IIS Rewrite not working (but redirection does)

I was trying to play with URL re-writing using the Rewrite Module 2.0 but I had no luck getting it to work. What I'm trying to do is re-write all calls to web app at port 80 to other applications hosted in IIS (or maybe on different servers on the…
Kassem
  • 8,116
  • 17
  • 75
  • 116
29
votes
2 answers

IIS URL Rewrite Module : Redirect Based On QueryString

I Have some problems with redirecting to another URL based on the query string parameters. I want to redirect users which enter www.domain.com/signup.aspx?p=1 to: www.domain.com/signup
Martijn B
  • 4,065
  • 2
  • 29
  • 41
28
votes
2 answers

IIS7 urlrewrite module - Rules in external xml file

I'm using IIS7 UrlRewrite module. I set up my rules in the web.config section. I want to know if there's a way to define the rules in one external xml file instead of in web.config file. Thanks.
opaera
  • 761
  • 2
  • 8
  • 8
23
votes
8 answers

IIS URL Rewrite: Add trailing slash except for .html and .aspx

Adding a trailing slash to all URLs through IIS URL Rewrite Module is widely spread, but how do I add exceptions for URLs that ends with .html and .aspx? Today I have this:
Seb Nilsson
  • 26,200
  • 30
  • 103
  • 130
20
votes
2 answers

Rewrite rule error: HTTP Error 500.50 - URL Rewrite Module Error. The expression "https://abc.com/{R:1}" cannot be expanded

Whenever someone makes request over HTTP protocol I rewrite the url to make it HTTPS. This is the code in web.config:
TCM
  • 16,780
  • 43
  • 156
  • 254
18
votes
4 answers

Can't change IIS response code with URL Rewrite outbound rule

I'm trying to set up an IIS URL Rewrite rule to match 403 responses as a result of someone attempting to browse to a directory when directory browsing is disabled. I want to then redirect them to the usual ASP.NET custom errors page I have defined…
Troy Hunt
  • 20,345
  • 13
  • 96
  • 151
16
votes
2 answers

Rewrite maps in IIS7 — how to make the match optionally include a trailing slash?

I have read the top 30 Google hits for several combinations of IIS rewrite map condition and so on, but I can't find any decent documentation, either on a microsoft.com site or elsewhere. I have a bunch of rewrite maps in IIS7 that I would like to…
Owen Blacker
  • 4,117
  • 2
  • 33
  • 70
16
votes
1 answer

How to exclude a directory with IIS URL rewriting?

I have a domain.com/index.php and a friendly url rule to redirect domain.com/index.php?s=? requests. I use IIS webserver with the URL rewrite add-on. Above works fine. However, there is a problem with requests to the admin directory... I also have…
Arjen
  • 289
  • 2
  • 4
  • 11
15
votes
2 answers

Host Angular app on IIS - Redirect to root and force HTTPS

I have got an angular application hosted in IIS. In order to redirect all the requests to the root of the application and to allow angular routing to deal with the different routes, I have added a web.config file with a URL Rewrite rule, as…
D.B
  • 4,009
  • 14
  • 46
  • 83
15
votes
4 answers

IIS Url Rewrite Module: Get ApplicationPath

I am looking for a way to rewrite the url in case the application path in the url has a different casing. Since the application path can vary for different deployments, I need to access it dynamically. Is there any way of doing it? Background: I am…
Victor Mukherjee
  • 10,487
  • 16
  • 54
  • 97
15
votes
3 answers

ASP.NET OAuth having issues with URL Rewrite

My production setup is as follows: M1 – ASP.NET Website M2 - IIS URL Rewrite 2.0 + ARR 3.0 Using IIS URL Rewrite, any request to M2, say http://m2/app/login.aspx will be redirected to M1 as http://m1/app/login.aspx. On M1, ASP.NET Open Auth has…
Guru
  • 151
  • 1
  • 4
14
votes
2 answers

IIS URL Rewrite not working with query string

I thought this was pretty straightforward, but it refuses to work. The old URL is http://www.site.com/?q=node/17 It needs to redirect to http://www.site.com. I don't need to worry about wildcards, this is the only query string parameter I need to…
MyBrokenGnome
  • 646
  • 2
  • 5
  • 16
1
2 3
51 52