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

Mod Rewrite Maintenance page that uses multiple URLs

I have a site the uses multiple URLs for a single application. Depending on the URL of the site you will get different content. I need to create a rewrite rule that redirects a user to a different page depending on what URL the user hits. For…
Cory Fail
  • 1,070
  • 8
  • 26
0
votes
2 answers

ISAPI Rewrite Rule For Multiple Query String Parameters

I'm trying to rewrite a URL with 2 query string parameters using HeliconTech ISAPI_Rewrite Version 3. I'm able to rewrite the URL with 1 parameter but I can't figure out the rule(s) for rewriting 2. Original…
JGW
  • 57
  • 2
  • 5
0
votes
1 answer

Domain Rewrite for both HTTP and HTTPS in IIS 7

I want to do a number of 301 redirects in one request and I found this article to be helpful. However, I have a problem where http://example.com redirects to https://www.example.com BUT https://example.com DOES NOT redirect to…
RealSollyM
  • 1,530
  • 1
  • 22
  • 35
0
votes
1 answer

mod_rewrite to ISAPI Rewrite

my .htaccess code as below: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^\.]+)$ $1.php [NC,L] ErrorDocument 404 http://www.intelligent-t.com/404 How to create httpd.ini file with the same above roles ???
Saeed Aknan
  • 93
  • 1
  • 7
0
votes
1 answer

How to Rewrite a Rule in htaccess

I have a few dozen links, that are generating a page not found error because of the parameters in…
0
votes
1 answer

IIS rewriting with slug generation having issues with ampersands

I'm attempting change a url like example.com/company/company-1 to example.com?slug=company-1 I re-write using the following pattern
NaNuk
  • 141
  • 9
0
votes
1 answer

Hide real URL with ISAPI Rewrite?

Is it possible to hide real URL with HeliconTech's ISAPI Rewrite module? To be more specific, consider the following scenario: User requests an URL "example.com/something". "In the background", server redirects the request to another URL…
polvi
  • 1
  • 2
0
votes
1 answer

rewrite rule .htaccess to web.config

Currently I'm running site on simple linux hosting but I bought windows VPS where I installed 2008 server + plesk and I'm trying to move the site on new VPS. I occured a problem - The first index.php page looks fine but it's just LOG-IN page so I…
0
votes
2 answers

Only allow redirects within the same domain with mod_rewrite

I would like to limit any redirects to URLs within the same application. Is this possible with ISAPI Rewrite (mod_rewrite for IIS)? Basically I want to prevent against open redirection attacks. One example is where a URL may come from a query…
Diego Barros
  • 2,071
  • 2
  • 33
  • 45
0
votes
1 answer

How to replace space in uri with Isapi rewrite

i have to replace spaces in uri like : /parma/vendita/villa%20schiera/via%20cremonese/ With a - char to have this: /parma/vendita/villa-schiera/via-cremonese/10339 I really appreciate a suggestion to write isapi rewrite rule Thanks :)
Spiderleo
  • 11
  • 1
0
votes
1 answer

Using ISAPI-Rewrite htaccess to 301 redirect multiple urls for multiple hostnames?

I have a single site within IIS, which runs on 4 different hostnames. The CMS handles that, and displays the correct site based on the incoming hostname. I need to use ISAPI rewrite to handle all the old urls and 301 redirect them to the new…
YodasMyDad
  • 9,248
  • 24
  • 76
  • 121
0
votes
2 answers

Appending an extension automaticlly if url does not contains

I am using the following Rewrite rule RewriteMap map txt:C:/seo/mapping.txt RewriteCond %{QUERY_STRING} (?!admin) RewriteCond ${map:$1|NOT_FOUND} !NOT_FOUND RewriteRule ^(.*?\.(?:html|gif|jpg|png)) ${map:$1} [NC,L,NS,QSA] But there are some cases…
user3733648
  • 1,323
  • 1
  • 10
  • 25
0
votes
1 answer

Isapi Rewrite : Remove filename from URL

Im am trying to use the isapi rewrite tool on my web domain to write some basic rules, but am getting a bit confused. My base url is http://forevr-dev.co.uk/musicexplained/index.cfm and every page on the site follows from this base url. For example…
namtax
  • 2,417
  • 5
  • 20
  • 27
0
votes
1 answer

Helicon ISAPI_REWRITE for masking folder

I would like to use the Helicon ISAPI_REWRITE module to rewrite a url: 123.45.67.89/folder to www.site.com I need to mask the IP/folder due to an IIS structure change. The reason why I don't want to get into, but it's valid based on the setup. Any…
Brian Mains
  • 50,520
  • 35
  • 148
  • 257
0
votes
1 answer

Excluding a script from the general UrlRewrite rules

I have following rewrite rules for a website: RewriteEngine On # Stop reading config files RewriteCond %{REQUEST_FILENAME} .*/web.config$ [NC,OR] RewriteCond %{REQUEST_FILENAME} .*/\.htaccess$ [NC] RewriteRule ^(.+)$ - [F] # Rewrite to…
Steven
  • 31
  • 3