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.
精彩评论