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

Intermittent 503.64 response from Azure App Services

We have several APIs running as Azure App Services and have been experiencing intermittent service outages where 10-25% of the calls to those App Services return a 503.64 while the other calls (often to the same endpoint) return normal responses.…
Origameg
  • 324
  • 2
  • 9
2
votes
1 answer

Rewriting basic: from specific url to another specific url

What I am asking is very basic and I think it should work but I do not know why it doesn't. Basically, I need these urls(1) to 301 redirect to these others(2) (1) /es/madrid/ => (2) /es/madrid-es/ (1) /es/ibiza/ => (2) /es/ibiza-es/ This is my…
Eduhud
  • 208
  • 1
  • 10
2
votes
2 answers

Viewing IIS URL Rewrite Rules in Powershell

So I have a web based application that I'm responsible for installing at our customers. This requires a lot of manual configuration within IIS, and I've been able to do almost all of this via Powershell. But there's one key thing I'm struggling…
Christopher Cass
  • 817
  • 4
  • 19
  • 31
2
votes
1 answer

Serve a react app in a subfolder using IIS

This is the desired result: http://{domain} redirect to http://{domain}/subfolder when a put http://{domain}/subfolder/contacts on the browser, I expect that serves exactly the desired page (contacts) Actually, with IIS's URL Rewrite only the…
2
votes
1 answer

How to convert an nginx reverse proxy "sub_filter" to IIS10 URL Rewrite - Outbound Rule?

I'm currently using nginx (for Windows) to create the below reverse proxy with respective sub_filter to inject CSS to the HTML. I would like to replicate this in IIS 10: location /files { proxy_pass http://localhost:999/files; proxy_set_header…
MKANET
  • 573
  • 6
  • 27
  • 51
2
votes
1 answer

Setting SonarQube for SSL using IIS and Reverse Proxy throws 502 error

I am trying to setup SonarQube with SSL on Windows Server 2019. I can access the SonarQube server locally on the server using http://localhost:9000. I followed the exact steps as outlined here to setup reverse proxy in IIS using URL Rewrite module.…
LP13
  • 30,567
  • 53
  • 217
  • 400
2
votes
1 answer

How to rewrite cookie using IIS URLREWRITE Module

I need to rewrite all cookies in the website to have HttpOnly, Secure, and SameSite=lax because of vulnerability tool findings. Sample cookies: cookie1 = oiu3ou2o3u2o42uo2; cookie2 = 0830413o4o1uo4uo1u;HttpOnly; cookie3 =…
iCeR
  • 139
  • 3
  • 15
2
votes
0 answers

Outbound IIS Rewrite rule on script with boolean attribute isn't working

I'm trying to add a version querystring to some CSS and JS files via an Outbound rewrite rule as follows:
Zhaph - Ben Duguid
  • 26,785
  • 5
  • 80
  • 117
2
votes
1 answer

IIS Rewrite Maps with Wildcard for Querystring

Trying to figure out how to do wildcards for querystrings. Right now this works, but it has to be an exact match. I have this rewrite rule.
bb2j3z
  • 63
  • 1
  • 5
2
votes
2 answers

How to simplify PHP site URL using htaccess rewrite rule?

I have this site made from the developer in PHP and now all the pages have this URL structure, websitename.com/software.php?name=product_name The only thing which changes every time on various pages on site is only the "product name" such…
2
votes
2 answers

Mod rewrite query parameter validation and blocking also request url blocking

On my site, only few query query parameters are allowed but, some scanners or hackers trying to access url with unique parameters which my php application doesn't support, I can block them in php application level, by validating $_GET parameters,…
user3637224
  • 585
  • 1
  • 3
  • 22
2
votes
1 answer

web.config Index Redirect

I use a standard web.config file for my projects that are hosted on Windows servers. It takes care of 2 tasks. It redirects the non-www version of the site to the www version. It redirects the index file to the root. See below:
Batfan
  • 7,966
  • 6
  • 33
  • 53
2
votes
1 answer

URL rewrite disappears on an Virtual Machine in azure

I have a virtual machine in Azure and on that machine I have a IIS installed. On that IIS I have installed the URL Rewrite module and redirect all HTTP calls to HTTPS. The problem I am noticing is that my rule that I am creating is removed from time…
Magnus Gladh
  • 1,817
  • 4
  • 20
  • 31
2
votes
0 answers

Can anyone help me consolidate these IIS rewrite rules?

I've got some IIS rewrite rules in place, and everything is working fine. But i feel like i can consolidate them. Here are my rules:
RPM1984
  • 72,246
  • 58
  • 225
  • 350
2
votes
1 answer

Url rewrite rules not working in Azure web app

I have a Sitecore 8 application hosted in Azure. I have several domains subdomains that point to the same application but are deprecated and need to redirect to the main site. My main site is www.mysite.com. I have separate endpoints for each…
Erica Stockwell-Alpert
  • 4,624
  • 10
  • 63
  • 130