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

IIS URL Rewrite Module - change query string parameter value

How can I modify just the value of a specific QueryString parameter if it is equal to a specified value, using a rewrite rule? I only want to change this value, and do not want to affect the rest of the url or any other query string parameters. eg.…
Stumpy7
  • 252
  • 3
  • 14
2
votes
0 answers

How do I redirect if the URL has been changed using URL Rewrite in IIS?

I've got a site with a bunch of redirects specified in a and a few over-arching rules but my knowledge of IIS Rewrite is not all that and it's not working as intended. The logic I need is: First, strip any trailing slash from the…
Greg B
  • 14,597
  • 18
  • 87
  • 141
2
votes
2 answers

Set header from URL Rewrite on Azure Websites - AppCmd or applicationhost.config?

I'd like to set a request header (HTTP_HOST to be precise) from Web.config, using the IIS URL Rewrite module, on Azure Websites. Basically I'd like to have something like this in my site's Web.config:
Piedone
  • 2,693
  • 2
  • 24
  • 43
2
votes
1 answer

Add subdirectory for locale based URL existing ASP.NET website, resolve relative paths correctly

Existing ASP.NET (MVC and webforms hybrid) website displays translated content. The language is based on a cookie that stores the user's preference. There is no change in the URL when the user changes the setting. The content is reloaded in the…
2
votes
0 answers

IIS URL Rewrite based on logged in user

I have a scenario whereby I want to route http requests from authenticated users to specific websites hidden behind a reverse proxy. The decision of which site to route too is based on the specific user. For example, user 'Mary' may be routed to…
Brad Leach
  • 16,857
  • 17
  • 72
  • 88
2
votes
2 answers

ColdFusion with IIS URL Rewrite - Page never finishes loading

I am running CF10 on IIS 7.5 with URL Rewrite module installed. All the rewrite rules work perfectly and ColdFusion is returning the correct pages. In order to get the page displayed in the browser I have to manually set the 'content-length' value…
volume one
  • 6,800
  • 13
  • 67
  • 146
2
votes
2 answers

Problems importing .htaccess into IIS URL Rewrite Web.Config

i'm trying to import .htaccess file into the URL rewrite rule in IIS 7. the current file in Symfony 2 fails importing it into IIS. i need the help of someone that knows the syntax to translate the file into something usable by IIS, appealing to the…
Rafael
  • 3,081
  • 6
  • 32
  • 53
2
votes
0 answers

Why URL rewrite with international chars in HTTP_REFERER give error in IE 8,9,10?

I’m using IIS ARR with URL rewrite and it’s working great in all browsers except Internet Explorer 8,9,10. When I move from one page with international chars to another I’m getting this error: "502 - Web server received an invalid response while…
Noamway
  • 155
  • 5
  • 21
2
votes
1 answer

Does more than 1000 redirects in IIS 7.5 affect site response time and or performance

I hope the title does already explain my question. We have a website with more than 1000 static urls defined in a rewritemap (iis 7.5 rewrite module). If this number still increases, will this affect the site response time?
MIKE
  • 23
  • 2
2
votes
0 answers

How to add username field in request header on IIS server with windows authentication

I have an web application that runs on 4502 port and I use IIS server with url rewrite module so it works like reverse proxy with windows authorisation. It works fine but I can't get username field on my application. Is it possible to add username…
2
votes
1 answer

URL rewrite rule to replace old url .aspx to a new mvc route

I have a webforms website I'm translating to MVC but I want certain url's that have been indexed to find their new url in the mvc site and I'm struggling with the one…
David Aleu
  • 3,922
  • 3
  • 27
  • 48
2
votes
2 answers

Rewrite on IIS7 not working correctly with "www"

I have problem with my redirection rule. I want my pages will have the "www" prefix. It works on some pages, while on other it simply not doing anything. This is my rule:
2
votes
2 answers

Remove querystring through web.config

On my website, I have a situation where my URL sometimes get a querystring parameter appended by a system outsite ours. So instead of looking like this: http://www.domain.com?myquery=blah or http://www.domain.com, it has the url http:…
Lars Holdgaard
  • 9,496
  • 26
  • 102
  • 182
2
votes
0 answers

404 vs 403 when blocking hotlinking to font files

I've been searching the web, but can't find an answer to this specific issue. I'm using the IIS Rewrite module to block direct access to WOFF and EOT files, to discourage hotlinking and theft of font files. I'm doing this by denying the request if…
user1751825
  • 4,029
  • 1
  • 28
  • 58
2
votes
1 answer

When to use routes vs. rewrite rules?

I'm trying to debug a problem with routing and I've just realized that MVC routes do something extremely similar to url rewriting but I don't have a good understanding of which situations call for routing and which call for url rewriting. Can…
Joshua Frank
  • 13,120
  • 11
  • 46
  • 95