Force Rewrite Proxy Mode even when on same host?

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 2
Joined: 21 May 2014, 07:29

Force Rewrite Proxy Mode even when on same host?

21 May 2014, 07:45

Currently I'm using ISAPI_Rewrite 3 to rewrite URLs on the same IIS 8 server between two web applications, since this is not possible with the IIS built-in rewrite module.

My .htaccess file roughly should look like:

Code: Select all
RewriteEngine on
RewriteBase /
RewriteRule ^shop\.html$ http://www.example.org/Order/Shop.aspx$1 [P]

But since proxy mode is not supported on the same host (as described in the Apache mod_rewrite manual), I have to actually artifically call my destination URL via SSL to fake a different host.

So the actual .htaccess file roughly looks like:

Code: Select all
RewriteEngine on
RewriteBase /
RewriteRule ^shop\.html$ https://www.example.org/Order/Shop.aspx$1 [P]

(Please notice the "https" instead of the "http" above)

My question is:

Is it somehow possible to use the proxy mode in ISAPI_Rewrite even when staying on the same host?

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: Force Rewrite Proxy Mode even when on same host?

21 May 2014, 22:29

Can you re-locate one of the apps to a different host? I understand that it's silly, but I'd have too look into this to come up with something smarter.

Regards

User avatar
Posts: 2
Joined: 21 May 2014, 07:29

Re: Force Rewrite Proxy Mode even when on same host?

22 May 2014, 02:31

Thanks! I did this virtually by using HTTPS instead of HTTP, that's a suitable workaround for me now.

I am just curious whether you could add an option to force proxy mode even on the same host.

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 9 guests