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

Rewriting sitemap.xml url - asp.net web.config

I know in htaccess but how can I rewrite url of sitemap using web.config Rules property. I have tried following ways, but none worked
Luckyy
  • 1,021
  • 4
  • 15
  • 29
3
votes
1 answer

Using IIS Url Rewrite Module To Point To Azure CDN

I have the Url Rewrite Module installed on my web server that is running Windows Server 2012 R2 at a URL like: http://staging.mysite.net/ I have images, fonts, scripts, etc. loaded into the Azure CDN. I have specified the following rules in my…
eat-sleep-code
  • 4,753
  • 13
  • 52
  • 98
3
votes
1 answer

Multiple rewriteMaps in IIS7, only one responding

I have more than one rewrite map in my site, but only one map seems to be working. The relevant chunk of the Web.config file reads:
Owen Blacker
  • 4,117
  • 2
  • 33
  • 70
3
votes
1 answer

Url rewrite http to https in iisnode

Using standard iis url rewrite module technique to redirect http to https does not work with iisnode. I am having the following rule configuration to redirect http to https:
Jan Blaha
  • 3,069
  • 1
  • 22
  • 35
3
votes
1 answer

IIS7 Application Request Routing HTTPS

I have a reverse proxy that routes traffic to my app server.. I have login feature on my public website that is served through HTTPS. The SSL certificates are installed in the reverse proxy server only. My app server doesn't have SSL certificate.…
ronanray
  • 577
  • 3
  • 12
  • 24
3
votes
1 answer

URL Rewrite to different port based on condition

I have a site that is something like this: https://www.website.org/cms I have an application that's running on another service on the same server on a different port that I want to have accessible over this…
Snowburnt
  • 6,523
  • 7
  • 30
  • 43
3
votes
3 answers

IIS URL Rewrite module: Url.Content() does not resolve CSS/Image path properly

I have a standard MVC3 project with layout page etc. Now I need to make pretty URLs. I started playing with URL rewrite module. I'm trying to translate http://localhost/Photographer/Pablointo http://localhost/category-about.aspx?displayName=Pablo,…
avs099
  • 10,937
  • 6
  • 60
  • 110
3
votes
2 answers

IIS Redirect Regex doesn't work with a space - %20 in URL

So I have one simple problem but somehow doesnt seem to work. I have one URL http://www.domain.com/%20#axzz2ZX4J0KAS which I want to redirect to http://www.domain.com/page-name.htm. I have tried so many combinations in IIS URL Rewrite/web.config and…
user704988
  • 436
  • 1
  • 9
  • 24
3
votes
1 answer

IIS 7 Url Rewrite - Matching Sub Domains, but excluding specific urls

I have a URL rewrite set up on a site where users can create their own sites on a subdomain.
MooreFish
  • 81
  • 1
  • 7
3
votes
1 answer

IIS7.5: Is there a way to use Require SSL and URL Rewrite Module together for https?

In IIS7.5, I have a URL Rewrite rule that redirects http requests to https. If I check "Require SSL", I get a 403 Unauthorized instead of a redirect, which makes sense. Is there a way to use them together? Would there even be a benefit? I'm assuming…
Ivy
  • 887
  • 1
  • 7
  • 25
3
votes
3 answers

IIS 7 rewrite rule and Url.Content issues

I have the following rule in IIS 7:
Mantorok
  • 5,168
  • 2
  • 24
  • 32
2
votes
1 answer

How to host ASP.NET Web Pages w/ Razor Under Wordpress?

The Problem When I try to get to my ASP.NET Web Page Razor pages using the cshtml extension, they work fine. If I remove the extension, WordPress tries to look up the URL as if it were a blog post and I can't get to the page or use "pretty" URLs via…
Tod Birdsall
  • 17,877
  • 4
  • 38
  • 40
2
votes
0 answers

URL Rewrite not working - IIS 7

This is something that we have had working in IIS 6 on Win 2003 but recently we have upgraded our servers to 2008 and IIS 7.5 and for the life of me I cannot get the natively supprted URL rewrite to work. Under the website (example.site.com) I have…
Pelly
  • 275
  • 1
  • 4
  • 13
2
votes
1 answer

Problems with Regular Expression for Rewrite

I'm having problems with my regular expression, can someone help? Example URL: http://rhine.ga.domain.com
Jason
  • 85
  • 1
  • 1
  • 8
2
votes
1 answer

The requested URL was not found on this server .htacess

I am trying to rewrite URL like: example.com/speciality_details.php?id=23&name=ent TO example.com/specialities/23/ent But I am getting this error: Not Found The requested URL was not found on this server. Additionally, a 404 Not Found error was…