开发者

MOD Rewrite Mask for Image URL

开发者 https://www.devze.com 2023-01-02 21:59 出处:网络
Okay so I am launching a cloned e-commerce site.I want to create a rewrite rule for the image folder for the second site to fetch images from the first site.

Okay so I am launching a cloned e-commerce site. I want to create a rewrite rule for the image folder for the second site to fetch images from the first site.

RewriteRule ^alice.gif$ www.rhinomart.com/images/h_home.gif

When I go to alice.gif directly through the browser it simply redirects me to the rhinomart.com URL and image. How do I prevent the redirect from occurring? When I go to http://www.acnbiz.net/alice.gif it should fetch alice.gif directly from Rhinomart.com/images and not 开发者_JAVA百科redirect. is it possible???


If you want to rewrite to an external site but not redirect the browser then you will need to proxy the request by enabling mod_proxy and using the [P] flag.

0

精彩评论

暂无评论...
验证码 换一张
取 消