Questions tagged [isapi-rewrite]

ISAPI_Rewrite is a URL rewriter for Microsoft IIS, from Helicon Tech.

ISAPI_Rewrite from Helicon Tech. This is a URL rewriter for Microsoft IIS.

There are two versions still in use, with different syntax, so it is helpful to specify the version in the question. v3 is the latest, compatible with Apache mod_rewrite. v2 is the previous incompatible version. Both versions of ISAPI_Rewrite are really meant for IIS6 and earlier. For IIS7, Helicon Tech strongly recommends their Helicon Ape product, which contains the mod_rewrite as one module. There is a separate tag for Helicon Ape.

252 questions
16
votes
7 answers

Why are blank pages being served with "200 OK" for asp.net errors in IIS 8.5 (Win 2012 R2)?

I've set up a new Windows 2012 R2 server running IIS 8.5. We noticed that when an error occurs (eg the ASP.NET State Service was not running) that instead of outputting a 500 status code error screen, the request actually returns a totally blank…
NickG
  • 9,315
  • 16
  • 75
  • 115
15
votes
2 answers

IIS Rewrite rule - ignore for localhost

I have the following rule which is working well for redirecting my www requests to the root. However I can't seem to turn it off for localhost. Here is what I have now:
user1112324
  • 623
  • 1
  • 7
  • 23
7
votes
5 answers

Can I do an if/then/else in htaccess?

I have a site that serves up certain content based on the subdomain. So it is the same set of files, and maybe the header and some info in the site pages changes based on the subdomain. I need to have different htpassword authentication based on…
user151257
  • 73
  • 1
  • 3
6
votes
7 answers

Redirecting non-www URL to www using .htaccess

I'm using Helicon's ISAPI Rewrite 3, which basically enables .htaccess in IIS. I need to redirect a non-www URL to the www version, i.e. example.com should redirect to www.example.com. I used the following rule from the examples but it affects…
chrisofspades
  • 847
  • 1
  • 10
  • 16
6
votes
1 answer

Isapi filter not working on IIS 7 (which did work on IIS 6)

I have an Isapi dll which performs some basic URL rewriting. It works fine on II6. However, now my dev machine has been upgraded to Windows 7, I cannot get it to work under IIS 7 Is there anything special that needs to be done to get this to…
ChrisCa
  • 10,876
  • 22
  • 81
  • 118
5
votes
2 answers

ISAPI rewrite on IIS Express

With the release of Visual Studio 2010 SP1 and IIS Express we want to run our asp.net 3.5 websites on that instead of our iis5 instance on our local developement machines. All of our code runs fine except for our url rewrite rules using ISAPI…
Paul Lemke
  • 5,494
  • 3
  • 47
  • 66
5
votes
2 answers

Global.asax not firing for .aspx pages in IIS7

We run a link redirection service which can handle links thrown at it in various formats. One of these formats is to append the destination URL to the end of the link, for example http://url.fwd/abcd/http://www.mydomain.com/page.aspx This was…
roryok
  • 9,325
  • 17
  • 71
  • 138
5
votes
3 answers

Redirecting URL without www to www

I need your help. I want to test if the URL is entered without www like example.com it should be forwarded to www.example.com.
user160820
  • 14,866
  • 22
  • 67
  • 94
4
votes
3 answers

Why is /eurl.axd/Gibberish being tacked onto the end of my pages?

I've been working to get our site moved to a public beta server, and after we configured IIS to match the internal testing server I noticed this problem. The application still works but it has this ugly stuff on the end. What is causing this to…
Doug Chamberlain
  • 11,192
  • 9
  • 51
  • 91
4
votes
3 answers

ISAPI_Rewrite In IIS 7

I've been using ISAPI_Rewrite from Helicon (http://www.helicontech.com/isapi_rewrite/) on a Server 2003 box for years and have always had good luck with it. I'm migrating all the sites on the 2003 box to a new shiny Server 2008 box. I would prefer…
Ryan Smith
  • 8,344
  • 22
  • 76
  • 103
4
votes
2 answers

Remove specific query string key/value pairs in htaccess (but leave others intact)

I'd like to build an ISAPI_Rewrite 3 "RewriteRule" to handle the following permanent redirects: ╔════════════════════════════════╦════════════════════════════╗ ║ Input ║ Redirect …
David Budiac
  • 811
  • 2
  • 9
  • 21
4
votes
2 answers

IIS rewrite rule to check for querystring and add it if its not there

I'm trying to make a IIS URL rewrite rule that appends an URL parameter to the URL. The url parameter is hssc. So, any url that is processed through the server, needs that parameter. Keeping in mind that some urls will have their own params already,…
M.R.
  • 4,737
  • 3
  • 37
  • 81
3
votes
3 answers

LinkButton OnCommand or OnClick Not Firing

I'm trying to do something that seems to be fairly simple. I have a user control with several LinkButtons. Each LinkButton has OnCommand, CommandName and CommandArgument set, like so:
3
votes
1 answer

How to combine flags using RewriteCond?

I am using ISAPI-Rewrite on IIS7. How can we combine [NC] and [OR] in a RewriteCond ? [NC,OR] ? What is the simple way to match domains with and without "www." ? Here is a draft : RewriteCond %{HTTP_HOST} ^old-one.com$ [NC,OR] RewriteCond…
Spilarix
  • 1,418
  • 1
  • 13
  • 24
3
votes
2 answers

Helicon ISAPI_Rewrite 301 redirect certain files from one folder to another

We moved our sites one folder to another folder. Some services we had to keep on old location still. So we had to keep old the folder. We had this on our helicon ISAPI .htaccess file on root of FolderA RewriteRule ^(\w+)\/(\w+)\/(\w+)\/t_(\d+)\/…
Timo77
  • 145
  • 1
  • 1
  • 19
1
2 3
16 17