dotnet / dotnet/aspnetcore

URL rewrite module - REQUEST_URI does not contain querystring

Open
#6,004 3 comments 1 reaction 0 assignees View on GitHub
area-middleware bug
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 5h
Merged PRs (30d)
276

Description

Using server variable REQUEST_URI does not seem to work when working with query strings.

This does not work:

```xml













```

As a workaround, I appended the QUERY_STRING variable to the condition. But this does not seem to be in line with the [IIS documentation](https://docs.microsoft.com/en-us/iis/extensions/url-rewrite-module/url-rewrite-module-configuration-reference#accessing-url-parts-from-a-rewrite-rule) I found

This is the workaround:

```xml













```

I'm using version 2.0.1 of the Microsoft.AspNetCore.Rewrite package

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.