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

How does IIS URL Rewrite handle # anchor tags

I'm struggling to find any information on how best to handle URLs with anchor tags, like the #foo in www.example.com/index.html#foo Our current situation is trying to use a Rewrite map for a URL with an anchor tag, but it is being trumped by another…
Spongeboy
  • 2,232
  • 3
  • 28
  • 37
6
votes
0 answers

IIS reverse proxy for Jenkins with CSRF protection

I am trying to use IIS with Application Request Routing as a reverse proxy for an instance of Jenkins running on the same host. The host is running Windows Server 2016 (Server Core). Jenkins is running on localhost:8080 while the default IIS site…
6
votes
1 answer

IIS 7 URL Rewrite rules aren't being applied

I have a .net 4.0 web application hosted on IIS7 server. After reading this: http://learn.iis.net/page.aspx/496/iis-url-rewriting-and-aspnet-routing/ about serving static content from another server, so that cookies aren't sent with every request…
Atzoya
  • 1,377
  • 13
  • 31
6
votes
1 answer

Custom provider in the url rewrite module

I am developing on a website which is currently hosted in Azure on a VM. Now I am changing this website to be able to run it as an Azure website. Now my problem: I am using the url rewrite module from IIS with the database provider, which works…
6
votes
1 answer

IIS Rewrite exclude rule by HTTP method

Can I add a condition to exclude an IIS URL Rewrite rule if the request type is POST? I was not able to find it anywhere in the documentation. I don't want to lower-case my URL if the HTTP method is POST.
David Freire
  • 671
  • 9
  • 23
6
votes
1 answer

Difference between IIS Redirect and Rewrite (in relation to redirecting)

The question may sound odd, but given an article, it is definitely possible to use the rewrite module to perform redirects just as with the redirect module. Both are able to issue a permanent redirect (301). There is a question asking for the…
Matthias
  • 15,919
  • 5
  • 39
  • 84
6
votes
3 answers

IIS Reverse Proxy Re-Encoding URLs Containing Percent Sign (%)

I am trying to set up a reverse proxy for Jenkins using IIS 7.5, Application Request Routing 3.0 (ARR), and URL Rewrite 2.0. I have the proxy mostly working, but am running into issues with URLs that contain the percent symbol (%). No matter what I…
Joseph Sturtevant
  • 13,194
  • 12
  • 76
  • 90
6
votes
1 answer

IIS Rewrite Module and sub applications

Here's what I have deployed: testRedirect is an empty website. All sub-applications are sub-folders that have been converted in application. All of them are ASP .Net MVC sites. Here's what I want to setup: Http://localhost/ must show the content…
MaxSC
  • 4,698
  • 2
  • 23
  • 36
5
votes
1 answer

IIS 7 URL Rewriting Causing Issues with Google AdWords/Analytics Tracking

We recently implemented IIS7 URL rewriting on our site to have nicer looking URLs. However, the day we implemented it, in Google Analytics, our paid versus organic search results got completely screwed up. Suddenly it is counting paid click-throughs…
5
votes
1 answer

How to host a service and static content in iisnode

I have my website working within express. But now I need to host it on IIS. How can I get my routing to work with IISNode? I was able to move my static content to a /public folder (html, front end js, etc). I didn't want to do this, but got that…
Hoppe
  • 6,508
  • 17
  • 60
  • 114
5
votes
2 answers

URL Redirect works fine, but rewrite gives 404

I've seen similar issues but none seem to really correspond to the problem I have now... I have the IIS7 url-rewrite-module and I'm trying to establish what I believe is "simple" rewrites. Here's what I'm using:
5
votes
1 answer

IIS 7.5 URL Rewrite rule to handle request based on user agent

I have written a rule to redirect request based on user agent. The rule is set to redirect default requests (not mobile) to Domain1 and requests from mobile devices to a mobile domain, Domain2. Even after applying the mobile redirect, all requests…
Ajo Mathew
  • 628
  • 1
  • 5
  • 25
5
votes
1 answer

url rewrite with visual studio 2012

I'm trying to use the url rewrite module with an MVC application on VS 2012. I've installed the module using web platform 4.0, followed Ruslan's blog post, updated his js script according to the comments (specifically the last one by Brant Burnett…
Ami
  • 1,110
  • 1
  • 13
  • 26
4
votes
0 answers

How to convert Blazor WebAssembly IIS rewrite rules to Apache mod_rewrite?

Having created an example Blazor WebAssembly application, I deployed it to both an IIS and an Apache for testing purposes. When publishing the application, it generated a folder "wwwroot" and a file "web.config": The "wwwroot" folder contains the…
Uwe Keim
  • 39,551
  • 56
  • 175
  • 291
4
votes
1 answer

IIS 7 Url Rewriting and two domains

I was writing up this question and in the process, it forced me to think a little harder and I answered it myself, though I still don't completely understand why it solved it. I have an account on a shared host with 2 domains registered. I'm using…
lyngbym
  • 669
  • 2
  • 10
  • 11