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
14
votes
1 answer

Microsoft rewriting module - Force www on URL Or remove www from URL

I have a shared hosting plan with Windows Server 2008 and IIS7.5, and there is Microsoft rewriting module installed and enabled.
Mahdi Ghiasi
  • 14,873
  • 19
  • 71
  • 119
12
votes
0 answers

ASP.NET Postback error under Reverse Proxy with IIS 8.5, URL Rewrite 2.0 and ARR 3.0

I would like to setup a reverse proxy in IIS but in my configuration I get problems with ASP.NET postbacks. When you click on any submit button of the proxied website then you get a 404 error. The URL in browser address bar is changed to the…
lekso
  • 1,731
  • 3
  • 24
  • 46
12
votes
2 answers

IIS URL Rewrite with multiple query string

Im really new in URL Rewriting and trying to rewrite / redirect multiple query but seems not working. Since this is the search result and comes with different filtering the queries may vary. For example is some search we may have the query of…
Jay
  • 1,384
  • 1
  • 17
  • 30
11
votes
1 answer

UrlRewrite condition based on custom HTTP header

I'm trying to configure a rule in UrlRewrite that has 2 conditions: HTTP header HTTP_HOST needs to match a certain domain (api.contoso.com) A custom HTTP header x-app-version needs to be present in the HTTP request based on this info, I'd like to…
user80498
  • 735
  • 1
  • 7
  • 15
11
votes
1 answer

Exclude path in IIS rewrite rule?

I have a rewrite rule that converts a URL to lowercase. I would like to exclude a folder but don't know RegEx. How do I exclude "~/myfolder" from the rule below?
TruMan1
  • 33,665
  • 59
  • 184
  • 335
11
votes
1 answer

In IIS URL Rewrite 2.0, why does HTTP_HOST include the port number?

I am trying to use IIS URL Rewrite 2.0 with IIS 8.5 on Windows 8.1. According to Accessing URL Parts from a Rewrite Rule, For an HTTP URL in this form: http(s)://:/? • The is matched against the pattern of the…
Mike
  • 7,500
  • 8
  • 44
  • 62
10
votes
0 answers

IIS 7.5 URL Rewrite Module with non-existent files and no extensions

I'm using the IIS URL Rewrite module successfully for known file extensions (.aspx, .html, etc.) However, how can I use the IIS URL Rewrite module for requests with no extensions, or files that do not exist? For…
Tim P.
  • 2,903
  • 24
  • 26
10
votes
1 answer

Yii2/PHP/IIS7 - URL Rewrite and File Permissions (Pretty URL issue)

I have a web.config file with the following text, although not relevant to my problem...
Shahid Thaika
  • 2,133
  • 5
  • 23
  • 59
9
votes
1 answer

What's the difference between HTTP_URL, REQUEST_URI and these other IIS variables?

I came across various rules and noticed there are a lot of variables that appear to be the same. The IIS Server Variables documentation isn't really helping, for example it doesn't explain any difference between PATH_INFO and URL, it…
Rudey
  • 4,717
  • 4
  • 42
  • 84
9
votes
2 answers

Trying to redirect HTTP to HTTPS (C#, IIS), but HTTPS turns back to HTTP in response headers - redirect loop

I have two IIS websites set up on the same IIS server. Website A contains most of the content and this is what users are shown when requesting our address (e.g. www.websitea.com). Website B is a separate project that contains just a part of the…
patrykgliwinski
  • 316
  • 1
  • 8
9
votes
1 answer

Setting MaxWebConfigFileSizeInKB in IIS8.5

I have a web.config file that references a rewrites.config file that is used by the inbuilt IIS Rewrite module. However my rewrites.config file is larger than 250kb, so i have followed the advise on this post. However it appears that in IIS 8.5…
Vince Ashby-Smith
  • 1,152
  • 4
  • 18
  • 36
9
votes
2 answers

Rewrite Subfolder to Subdomain in web.config

I'm attempting to write a rewrite rule for the following scenario. User attempts to load this picture: domain.com/images/folder/picture.jpg and instead, I need it to load: cdn.domain.com/images/folder/picture.jpg. Here's what I have that isn't…
GregD
  • 6,860
  • 5
  • 34
  • 61
8
votes
2 answers

Put images on CDN, using MVC3 on IIS7

I need to use CDN for all images on my site. So, Ive decided to use IIS Url-rewriting module, because edit manually all my site views - its impossible for me. So Ive made rules for IIS, eg:
frm
  • 1,720
  • 1
  • 14
  • 18
8
votes
1 answer

IIS URL Rewrite module repeats query string

I have this rule, to redirect all HTTP traffic to HTTPS:
8
votes
1 answer

URL Rewrite 2.0 installation fails on Docker

I'm trying to get URL Rewrite 2.0 installed using this Dockerfile: FROM microsoft/aspnet:4.6.2 WORKDIR /inetpub/wwwroot COPY obj/Docker/publish . ADD…
Jared
  • 1,385
  • 11
  • 21
1
2
3
51 52