isapi-rewrite

Helicon ISAPI Rewrite + ASP.NET : Rewrite rule to redirect to default page?

How do i rewrite URL like: http://subfoo.foo.com/ --> http://subfoo.foo.com/Pages/Home.aspx ...

How to Rewrite URL like: www.foo.com/tags/tag1+tag2 --> www.foo.com/Pages/Articles/ArticleListing.aspx?tags=tag1+tag2

How to add single rewrite rule for- www.foo.com/tags/tag1 --> www.foo.com/Pages/Articles/ArticleListing.aspx?tags=tag1 www.foo.com/tags/tag1+tag2 --> www.foo.com/Pages/Articles/ArticleListing.aspx?tags=tag1+tag2 www.foo.com/tags/tag1+tag2+tag3 --> www.foo.com/Pages/Articles/ArticleListing.aspx?tags=tag1+tag2+tag3 ...

ASP.NET + URL Rewriting: How to handle themes, css, js, etc resources?

I've written URL using Helicon ISAPI Rewrite v3 for following: www.foo.com/tags/tag1 --> www.foo.com/Pages/Articles/ArticleListing.aspx?tags=tag1 But the .css, .js i've refered are being accessed by browser as www.foo.com/tags/tag1/style.css www.foo.com/tags/tag1/myjs.js but these files are located as www.foo.com/css/style.css www...

Isapi ReWrite: How can I match a part of a url?

we are moving website platforms. The old site has some url rewriting built into it, so the urls look like "/product-name-here-1.aspx". I need to get the id out of this url using Isapi-Rewrite syntax. I've got a map file that takes the id and redirect to the page on the new platform. thanks in advance. ...

Help with redirection for .com, .net and .org domains: redirecting all of them to .com.

Hi all! I need help with some rules in ISAPI_Rewrite in my installation. (If you only know mod_rewrite could be a good help to, so I would adapt the configuration). I'm going to be very honest about my needs. I need to do this configuration in the next few hours, and don't have time right now understand everything about rewrites, regula...

From mod_rewrite to isapi_rewrite

Hi, I have a Modx htaccess file which needs to be rewritten from mod_rewrite to isapi_rewrite 2. Can someone please help me? The following lines need to be changed for isapi_rewrite 2: Options +FollowSymlinks RewriteEngine On RewriteBase / RewriteCond %{HTTP_USER_AGENT} ^.internal\ dummy\ connection.$ [NC] RewriteRule .* - [F,L] Rew...

Excluding a script from the general UrlRewrite rules

Hi, 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 url RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUE...

Helicon ISAPI_REWRITE for masking folder

Hello, 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 help would be appreciated. Thanks. ...

Exclude a directory from a rewriterule using ISAPI rewrite 3

Basically I've recently added the below rule in my httpd.conf for ISAPI rewrite on an IIS server to make sure that it always defaults to lower-case file and directory names. RewriteRule ^(.*[A-Z].*)$ $1 [CL,R=301,L] This is all fine and dandy for every part of the site except for one directory which we can call /MisbehavingDir, the cod...

Isapi Rewrite : Remove filename from URL

Hi there 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 http://forevr-dev.co.uk/musicexplained/index.cfm/artist/blondie would be the ar...

How do I rewrite HTTPS POST requests based on form data?

I have some existing functionality implemented as an ISAPI extension on IIS 6.0. Most of that functionality needs to remain in that C++ code. But all of the UI that is exposed from that extension needs to get pulled out into a new project (most likely ASP.NET MVC2 based) that is more maintainable. Nothing can change in the API. External ...

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 working on a Windows Server 2003 / IIS6 box for the last two years, but now we're trying to mo...

Maintaining ISAPI Rewrite Path with the ASP.NET tilde (~)

My team is upgrading from ASP.NET 3.5 to ASP.NET 4.0. We are currently using Helicon ISAPI Rewrite to map http://localhost/&lt;account-name&gt;/default.aspx to http://localhost/&lt;virtual-directory&gt;/default.aspx?AccountName=&lt;account-name&gt; where <account-name> is a query string variable and <virtual-directory> is a virtual direc...

Problem publishing a website with Visual Studio 2010

This is hard to describe. I have a web project that works under Visual Studio 2008. I have since upgraded the project to 2010 and all works well on the Dev machine.. I can build the site and run it quite happily on IIS on the Dev PC. If I publish this site to a remote Web Server, then all the pages that do a postback to themselves dont ...

Redirecting specific subdomains to domain in IIS6 (ISAPI_Rewrite is installed).

My production web environment contains two clustered servers. I need to redirect any direct requests to the two nodes to the main www URL. I also need to make sure my non-www redirect (with ISAPI_Rewrite) remains in tact. So essentially, I need: domain.com -> www.domain.com node1.domain.com -> www.domain.com node2.domain.com -> www.doma...

ISAPI Rewrite not redirecting request with query string

Hello all, I have installed the full verison of isapi_rewrite and have setup a proxy directive so that all traffic to my workstation in the folder 'ngis' (on any port) goes to another server. This is for testing purposes to check suitability before rolling out isapi_redirect to our prod servers. I have a rule as follows: RewriteRule ^...

ISAPI Rewrite - Domain with hyphen

Hi. I currently have 3 domains pointing to the same site, using my httpd.ini I'm trying to rewrite two of them so that DOMAIN1.COM and DOMAIN2.COM forward to the same page on DOMAIN3.COM. e.g. [DOMAIN1.COM/bla -> DOMAIN3.COM/bla] [DOMAIN2.COM/bla -> DOMAIN3.COM/bla] This bit is working fine using : # redirect to the same URL, but on ...

Migrating from ISAPI Rewrite to Mod_REwrite

I'm currently using ISAPI Rewrite I'd interesting in moving my ColdFusion app to Apache and would therefore like to use MOD_Rewrite. Is this possible? Or do I need to rewrite all the rewrites? ...

Forcing HTTPS using IIS and ISAPI Rewrite

Hello, I'm working to force HTTPS, and if the user is on HTTP, redirect the user. For some reason My rewrite rule works great on my prod env but not my dev, here it is: # Redirect HTTP to HTTPS# redirect all http requests to https RewriteCond %HTTPS (?!on).* RewriteCond Host: (.*) RewriteRule (.*) https\://$1$2 [I,RP] On Prod it w...

Need to make one RewriteRule play nicely with another, embarrassingly weak understanding of the principles of mod_rewrite standing in the way

Hey folks, I have the following system: Windows Server '03 IIS 6 (shoot me) PHP 5.2.14 Wordpress 3.0.1 WPML 1.8.1.2 I've added Wordpress to an existing high-traffic site, in a directory we'll call http://thehost/wordpress/ For mod_rewrite-like features, I'm using Helicon's ISAPI_Rewrite 3.1.0.76. I'm using it to enable "pretty" perm...