"Masking" external URL links using RewriteProxy

I have a simple rewrite rule that is written to an external domain by scrolling through Helicon Isapi_Rewrite 3 RewriteProxy.

Example: RewriteProxy blog http://blog.com

However, links on an external site are not masked by the proxy server, as I expected. They still points to http://blog.com/link1 instead of http: // mysite / blog / link1 .

Can someone point me in the right direction of the solution?

thanks

+3
source share
1 answer

Helicon Tech . http://www.helicontech.com/forum/8460-rewrite_proxy_to_2d_machine.html

ISAPI Rewrite 2, ISAPI Rewrite 3 . 3 .

RewriteEngine on
RewriteBase /
RewriteRule ^blog$ http://mysite/blog/ [NC,R=301]
RewriteProxy ^/blog(/.*)?$ http\://blog.com$1 [NC,U]

( , ISAPI Rewrite 2.) , - "" . .

1)

, , , . HTML- , , . HTML , , http://mysite/page_from_the_root.html. ISAPI Rewrite , , -, http://mysite/blog/page_from_the_root.html

2) cookie

.com cookie blog.com. , MySite, , .

3) JavaScript AJAX

4) SSL-

+3

Source: https://habr.com/ru/post/1706574/


All Articles