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

Redirect/Rewrite to subfolder, but maintain directory structure in IIS

I have been able to cobble together the following URL Rewrite to get my domain to forward to a sub-directory. It works, but it does not properly redirect to additional sub-directories. For example: qa.subdomain.domain.com properly redirects to…
Simon Says
  • 21
  • 2
2
votes
1 answer

IIS Url Rewrite Maps & Wildcard URLs

Using IIS Url Rewrite, is it possible to match wildcard URLs using RewriteMaps? For example, I have the following rewrite rule:
Dan Lister
  • 2,543
  • 1
  • 21
  • 36
2
votes
1 answer

Handle dynamic number of optional URL parameters in IIS rewrite rules

My scenario is as follows: a venue can be part of multiple categories and users can also add filters on multiple category types, so my URLs now are like: /venues/beaches/boats/themeparks (this will display all venues that are beaches AND boats AND…
Adam
  • 6,041
  • 36
  • 120
  • 208
2
votes
1 answer

URL-rewriting in web.config not working for Slim PHP API in subdirectory

I developed the backend application using the WAMP stack (Windows + Apache + MySQL + PHP) and SlimPHP micro framework. It is working perfectly with WAMP but now I have to make it work in a server that is using IIS v7.5 and I'm getting an HTTP 404…
rtribaldos
  • 1,177
  • 14
  • 28
2
votes
1 answer

IIS Redirect from HTTP to HTTPS including Application Name

I'm adding a URL redirect rule to redirect a user from HTTP to HTTPS in a way that it preserves the original query. For example... http://localhost/myapp/test >> https://localhost/myapp/test http://localhost/myapp/test?id=test >>…
heymega
  • 9,215
  • 8
  • 42
  • 61
2
votes
1 answer

IIS URLRewrite dynamic rule

I am trying to write an IIS URLRewrite rule that could be used dynamically using server variables instead of hard-coding. I tried several variables but can't seem to get to work. I have a rule http://domain.com/myweb/appname/ that rewrites to…
2
votes
0 answers
2
votes
1 answer

IIS URL rewrite rule for https and containing path

I'm trying to figure out a url rewrite rule to rewrite http requests into https only when a specific path is accessed like below. I've tried quite a few things that in the test pattern seem as though they should work but it never does. url…
Andrew S
  • 126
  • 1
  • 8
2
votes
1 answer

IIS Express Url Rewrite Module very simple redirect not working

I want to redirect index.php to home in this snippet.
Andrew
  • 817
  • 2
  • 10
  • 21
2
votes
2 answers

URL Rewrite rules appear to be redirecting instead of rewriting

I am using IIS URL Rewrite 2.0 module to create a URL that always points to the latest version of my app. I have configured it as follows:
Barguast
  • 5,926
  • 9
  • 43
  • 73
2
votes
1 answer

URL rewriting - Add default page to domain

I want to add defined Controller and Action to basic URL localhost:6473 -> localhost:6473/Beta/Index with the URL rewriting in Web.config but in some reason it doesn't work
Andriy
  • 85
  • 1
  • 9
2
votes
1 answer

URL Rewrite not working with absolute URLS

I have a situation where I want to use IIS 8 URL Rewrite to point requests for a service from one web application to another. The services are called by an iPhone app, and are hard coded within its code, so for legacy reasons the URL…
Andy R
  • 31
  • 1
  • 4
2
votes
0 answers

Dynamic Query String Routing in IIS URL Rewrite Module

I'm working on a search page with a lot of filters on it and my client is allergic to the query string. As I add more filters, I keep having to write more urls / redirect rules for each one, and it's becoming exponential Examples:
Callum
  • 869
  • 5
  • 23
2
votes
1 answer

.htaccess Question mark allowing

Hello today i tried to rewrite few things, i tried to rewrite this: www.example.com/index.php?title=how+do+man+live? To: www.example.com/posts/how+do+man+live?/ Now the problem is that the question mark appears only at url and when i post the…
2
votes
0 answers

Rewriting URLs In CSS File

I am trying to setup URL rewriting to rewrite all references to images, etc. to point to my CDN. I have it working on any reference within the .NET pages using the following web.config settings:
eat-sleep-code
  • 4,753
  • 13
  • 52
  • 98