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

ISAPI Rewrite - allow a subdomain to only hit a specific folder

Is there a way with ISAPI v3 to allow a subdomain to only hit a specific folder, and all other requests would redirect to www? I also have some urls under this folder that need to be rewritten. There will also be rewrite rules for valid www…
Brian Salta
  • 1,576
  • 1
  • 10
  • 18
0
votes
1 answer

isapi 3 - strip all query strings from domain and subpages

I would like to know how to strip out all query strings, i.e. domain.com/?a=123 -->> domain.com And domain.com/page.asp?b=456 -->> domain.com/page.asp
0
votes
1 answer

Use ISAPI_Rewrite to change subdirectories while preserving the domain

We have two domains, www.aaa.com and www.bbb.com. Both point to the same root directory on the server. The server has two sub-directories in the root: /abc/ and /xyz/. If someone types in www.aaa.com/abc/ They should go to /abc/ (like normal) If…
Nick Petrie
  • 5,364
  • 11
  • 41
  • 50
0
votes
2 answers

How can I detect if an ISAPI rewrite has occurred

I've inherited an old system after starting a new job, none of the previous developers work here any more and none of them documented all that much. Fun times. The system uses an old, defunct CMS and I've just finished a large ordeal whereby I…
Mikey Hogarth
  • 4,672
  • 7
  • 28
  • 44
0
votes
1 answer

Issues reading/writing to NAS from IIS 6.0 and PHP

I am having trouble getting a script to write to an attached network drive/NAS. The strange thing is, the same webserver has no problems reading/writing to the same directory from an existing script on the server. I am not strong with Windows/IIS…
Ben Ashton
  • 1,385
  • 10
  • 15
0
votes
1 answer

IIS rewrite subdomains to another subdomain

I have a website, say www.xyz.com I have another website hosted app.xyz.com I am looking at redirecting all the subdomain requests to app.xyz.com. e.g a.xyz.com - app.xyz.com b.xyz.com - app.xyz.com c.xyz.com - app.xyz.com The url in the browser…
Tushar
  • 1,242
  • 1
  • 8
  • 19
0
votes
1 answer

Handling encoded characters in ISAPI - Regex

I have a url that contains a ~, and I need to handle the encoded version of this character %7E. Currently, we have 2 rules to handle this case. ^/folder/([\w-]+)~(\d*).aspx$ ^/folder/([\w-]+)%7E(\d*).aspx$ Can I combine this into one rule? I tried…
Brian Salta
  • 1,576
  • 1
  • 10
  • 18
0
votes
1 answer

Regex to Replace Spaces in Two Conditions with Isapi ReWrite

I am using Isapi Rewrite for IIS, and I want to make SEO friendly URLs for a dynamic product page. I need to replace spaces differently in two query string parameters. In the first param, \s should be replaced with + In the second, all \s should be…
User970008
  • 1,135
  • 3
  • 20
  • 49
0
votes
1 answer

Regex split on underscore for RewriteURL

I am using Isapi Rewrite for IIS, and I want to make SEO friendly URLs for a dynamic product page. I need to split the SKU from the product name in a single query string parameter. The SKU is always the first part, and is followed by an underscore.…
User970008
  • 1,135
  • 3
  • 20
  • 49
0
votes
1 answer

Accessing HTTP headers in ISAPI Rewrite 3

Is there any way to access HTTP headers in ISAPI_Rewrite module? Didn't find anything about it. I know IIS URL Rewrite allows you to access headers as server variables - {HTTP_HEADER_NAME} - is there something similar here?
Ruslan Osipov
  • 5,655
  • 4
  • 29
  • 44
0
votes
1 answer

Hosting multiple domains on the same website

In IIS 6, I need to allow multiple domains to come through to a single website so that they can all share the same master page and database. They would all have a uniform look. I own a separate domain name for each site. I need to know what is the…
mwhite14
  • 257
  • 1
  • 7
  • 19
0
votes
1 answer

URL rewriting with Isapi_Rewrite 2 on Windows shared hosting fails partially

I have been forced to switch from IIRF to Isapi_Rewrite due to moving to a shared hosting environment from a VPS. The URL rewrites I was using under IIRF should work with minimal modifications, but for some unknown reason only one of the rewrites…
Frank Bailey
  • 185
  • 2
  • 17
0
votes
1 answer

htaccess redirect .asp page but allow same page with variables to serve

using htaccess (isapi) I need to redirect .asp page but leave .asp page WITH variables untouched. This sounds simple and so I thought it was but my efforts have been fruitless. RewriteRule ^CodePage.asp$ ^NewCodePage.asp? [R=301,NC,L] I want to…
0
votes
1 answer

Isapi Rewrite - preserving HTTPS in redirects behind load balancer

I'm running a site which has 2 separate sub-domains - one for HTTP and another for HTTPS. http://www.example.com https://secure.example.com http://secure.example.com does not exist and will not resolve. The problem is that the site is running…
stubotnik
  • 1,952
  • 2
  • 17
  • 31
0
votes
2 answers

Helicon Redirect to IIS6 Virtual Directory - .htaccess Syntax and location

I'm moving my blog which was in a physical folder (/blog/) on my IIS 6 web server to a virtual directory called the same name (blog) running BlogEngine.net, the virtual directory is running in the same application pool as the parent website. I want…
Absolut40
  • 61
  • 5
1 2 3
16
17