Force Rewrite Proxy Mode even when on same host?
3 posts
• Page 1 of 1
Force Rewrite Proxy Mode even when on same host?
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:
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:
(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?
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?
- HeliconAndrew
-
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: Force Rewrite Proxy Mode even when on same host?
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
Regards
Re: Force Rewrite Proxy Mode even when on same host?
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.
I am just curious whether you could add an option to force proxy mode even on the same host.
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 9 guests