...

View Full Version : URL Masking



Tony M
11-15-2010, 09:19 PM
I have two websites hosted on different servers and locations... One example1.com and example2.com .
I want to load the image http://www.example2.com/image.jpg in the page of http://www.example1.com/folder/tony.php , and at the same time I do not want the visitors to know that I am loading this image from example2 and I want to make the URL http://www.exapmle2.com/image.jpg to be viewed http://www.example1.com/image.jpg (like weather sites do when they load images from another sites without letting their users to know the real URL) BUT at the same the image must be loaded from example2.com and not example1.com. (I do not want to use iframes because it's only an image and not a page)

So please How can I do this? :confused:

Tony M
11-17-2010, 09:01 PM
I think it can be made by mod_rewrite... How? :confused:

InterbredMonkey
11-18-2010, 03:49 PM
I think it can be done using this:


RewriteRule ^http://www.domain2.com/([^/\.]+)\.jpg %{HTTP_HOST}/$1\.jpg [NC L]

I have not tested it nor do I know if it will work. If not you might need to change the
%{HTTP_HOST} to your domain1 name.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum