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

Rewrite a url without effecting homepage

Requested url(s): http://domain.com/about http://domain.com/contact etc. Actual location of the about page and the other pages aswell: http://domain.com/folder/about.cshtml http://domain.com/folder/contact.cshtml - The requested url should rewrite…
Nikita
  • 609
  • 2
  • 7
  • 18
0
votes
2 answers

IIS url rewrite Error 404.0 [edited]

I want: domain.com/example to target: domain.com/folder/example.cshtml Can anyone help me with the rewrite rule for it? Every suggestion is much appreciated :) I have edited the question so that it actually focuses on what is important.
Nikita
  • 609
  • 2
  • 7
  • 18
0
votes
0 answers

url rewrite module rule for page rewrite in asp.net web forms

I am trying to use Microsoft Url Rewrite in one application I am working on and for testing purposes for example I have this url: http://localhost:65532/MyWebsite/Page.aspx?PID=16483 which will give me the page I want it, everything looks good there…
Laziale
  • 7,965
  • 46
  • 146
  • 262
0
votes
1 answer

Convert htaccess file to web.config to run Php on IIS 7

I need to convert .htaccess to web.config in order to run php on iis 7. Any Ideas? Options +FollowSymLinks +SymLinksIfOwnerMatch RewriteEngine On RewriteBase /test RewriteCond %{SCRIPT_FILENAME} !-f RewriteCond %{SCRIPT_FILENAME} !-d RewriteRule…
user2071043
  • 5
  • 1
  • 2
0
votes
1 answer

MVC4 URL rewrite aliasing for "prettier URLs"

I'm currently a little new to Microsoft's MVC4 and I don't quite understand routing as well as I would like. What I am trying to do is make my URLs more human readable. Currently I have URLs that look like…
0
votes
0 answers

How can set the Vary HTTP header for Mobile redirection using IIS URL Rewrite?

According to this answer, for redirecting a mobile user to a mobile site you should add the HTTP header- Vary: user-agent I'm using IIS URL Rewrite module, with a rule like this-
Spongeboy
  • 2,232
  • 3
  • 28
  • 37
0
votes
1 answer

IIS 7.5: Special characters in URL rewrite external file

I have ran into the "max web.config size" for one of my applications running on IIS 7.5, Before editing the registry to increase this value, I tried to move all the rewriteMap rules into an external file but the server gave me back a 500…
Naraj
  • 457
  • 5
  • 8
0
votes
1 answer

Limit rewritten URL length in URL Rewriter

My real url looks like this: localhost/shop.asp?product=100&name=Product-name&category=cellphones My rewritten url looks like: localhost/cellphones/product-name/product-name_100.aspx I use Helicon URL Rewriter and what i need to do is this: If my…
R.App
  • 69
  • 2
  • 9
0
votes
1 answer

How can I set the RewriteModule in .htaccess?

I will present a to the point example. I have a domain name as: www.abc.com And another domain name as: www.123.com Now i want to write a rewritemodule in .htaccess for the following case: If i request a url like: www.123.com/xyz It will redirect my…
0
votes
1 answer

IIS Rewrite Module to map querystrings

I'm using the IIS Rewrite Module on IIS7.5. My mappings is in a text file in the structure: [old url], [new url] So something like this works: products/abc, http://test.com/new/products/abc This uses the following rule in my web.config
LordHits
  • 5,054
  • 3
  • 38
  • 51
0
votes
1 answer

How to change domain.com/go/?custom_ref=001 into domain.com/go/?ref=001 using htaccess rewrite?

How to change: domain.com/go/?custom_ref=001 into domain.com/go/?ref=001 using htaccess rewrite please?
0
votes
1 answer

can anyone tell me whats wrong with this IIS URL rewrite?

So i should be able to visit rsstest/test.xml and be forwarded to article.xml if i don't have a user agent of wibble. why doesn't this work?
user1242345
  • 67
  • 3
  • 8
0
votes
1 answer

URL Re-Writing in Umbraco - Page Moved Under New Directory

I'm looking to use the URLRewriting.config within Umbraco to set up some redirects. The majority of them are working fine, but a few are causing headaches. I have a page: /testpage.aspx which on the new site is now under /directory/testpage.aspx.…
edparry
  • 688
  • 1
  • 10
  • 34
0
votes
2 answers

IIS 7.5 URL Rewrite Module to Reformat Links?

I'm using the IIS Rewrite Module to take care of the migration between blogs so that no links are broken in the process. So I'm really just using a lot of 301 redirects. However, I'd like to avoid redirects when possible for performance and SEO…
Steve Wortham
  • 21,740
  • 5
  • 68
  • 90
0
votes
1 answer

IIS URL Rewrite module unencoding query string

We have a really simple URL rewrite rule that basically causes a 301 redirect to another domain:
Jacob
  • 77,566
  • 24
  • 149
  • 228