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
4
votes
0 answers

Using configBuilders with system.webServer rewrite section

I use the IIS Url Rewrite module, which is configured under system.webServer/rewrite. I'm trying to use a basic Microsoft.Configuration.ConfigurationBuilders.EnvironmentConfigBuilder configBuilder with mode="Expand" so I can inject an environment…
4
votes
2 answers

IIS Rewriting with Query String and Question Mark IIS 7

I have read the threads and I still can't work it out, my problem I know, but wondering if could point me in the right direction. I have setup a rule: www.mydomain.com/productlist.asp?CategoryID=2 rewritten to…
SuperSloth
  • 41
  • 1
  • 3
4
votes
1 answer

Why can I not access a nodejs app on an AWS EC2 Instance?

I am currently trying to deploy a node js app on an AWS EC2 Windows Server 2019 instance. I am done with cloning my git repo and starting up my application and can access it within my EC2 instance. To make my node application accessible I used the…
paaax
  • 144
  • 1
  • 1
  • 8
4
votes
1 answer

Master Data Services with Reverse Proxy

I am having an issue with accessing MDS via a reverse proxy. Below is the simplified network diagram of my infra setup. So, basically I have 2 app servers for ssrs and mds respectively and one web server. Plus there is a load balancer which serves…
4
votes
2 answers

IIS Redirect HTTP to HTTPS and WWW to non-WWW

On IIS 10 with URL Rewrite Module 2.0 I need 2 rules 1) HTTP to HTTPS 2) WWW to non-WWW First one created by Blank rule template. For second one I use Canonical domain name template. In my web.config rules likes like this:
4
votes
1 answer

Do we really need URL Rewrite module for hosting angular app on IIS?

For us angular app is working without URL rewrite module installed on IIS. Do we need URL rewrite module to host angular app on IIS? What difference it will make if we don't install that? It works with below web.config..I just commented rewrite…
sandy
  • 438
  • 4
  • 8
4
votes
1 answer

URL Rewrite http to https and let's encrypt

I am trying to setup URL Rewrite on my IIS so that it handles http and let's encrypt. My goal is the following 1) All traffic to http://example.com, http://www.example.com and https://www.example.com should redirect (301) to https://example.com 2)…
Anders
  • 567
  • 1
  • 7
  • 23
4
votes
2 answers

IIS10 URL Rewrite 2.1 double encoding issue

I have an IIS10 server with ARR 3.0 and URL Rewrite Module 2.1 that acts as a reverse proxy for several other web servers. The other servers run on different ports, so the IIS10 server provides 'friendly URLs' on port 80. URL rewriting is used to…
4
votes
1 answer

Adding Inbound Rewrite Rule in DSC script does not work

As the title says I'm configuring Rewrite rules for Reverse Proxy functionality with: IIS 8.5 Windows Server 2012R2 URL Rewrite 2.1 Application Request Routing 3.0 Powershell 5.1 For this I'm using Powershell DSC, setting the configuration in a…
Devvox93
  • 166
  • 1
  • 3
  • 14
4
votes
1 answer

IIS Url Rewrite overwriting external urls

On my development machine, I am trying to configure IIS as a reverse proxy to forward requests coming in port 443 to a nodejs application running locally. The requests are getting forwarded fine, but sometimes the the nodejs application tries to…
Nimesh Madhavan
  • 6,290
  • 6
  • 44
  • 55
4
votes
1 answer

IIS URL Rewrite rule using request header

I have been trying to creat an IIS Rewrite rule that looks at the incoming Header for an API and if it contains a certain string re-direct them to a certain page and not the API (Noobs - Using documentation API Keys) Been at it 2 hours and just…
4
votes
1 answer

How to redirect all non-www URLs to https://www. in IIS?

I want to add the proper 301 permanent redirect rule in IIS 8.5. I've added the following rules but it is not working.
Dukhabandhu Sahoo
  • 1,394
  • 1
  • 22
  • 44
4
votes
2 answers

IIS-URL Rewrite, URL rule to lowercase except querystring

Hi I am using the URL Rewrite module in IIS. I would create a rule to convert lowercase urls. But, I'm having problems. My goal is to do the following: http://www.doMain.com/App/ActIon?X=1&y=3&JJ=3... =>…
Barto
  • 337
  • 2
  • 11
4
votes
0 answers

Can't use {HTTP_HOST} for multiple rewrite rules in web.config file with GoDaddy Hosting - IIS 7.0

I came across a weird issue while creating a few rewrite rules for my website which is hosted by GoDaddy. I'm able to create one rewrite rule using the {HTTP_HOST} or {SERVER_NAME} variables, but at the time of adding a second rule, it looks like…
4
votes
1 answer

Rewrite static content to different domain in IIS

I have a local website on ASP.NET. And I need to proxy some of the static content (from folder "static") to another website. I've added this rule:
Michael Logutov
  • 2,551
  • 4
  • 28
  • 32