Dear all,
I got 2 sub-domains
c:\wamp\www\websiteA\ - http://websiteA/
c:\wamp\www\websiteB\ - http://websiteB/
inside websiteA got a folder for storing picture
c:\wamp\www\websiteA\photos\
in order websiteB want to access websiteA photo in websiteB's html I have to do link like
<img src="http://websiteA/photos/1.jpg" />
the problem is I don't want to expose websiteA domain in websiteB, since two domain is inside one machine. Is it possible to achieve something like virtual host?
I also don't want to expose the physical path for websiteA, and don't want to duplicate the data.
I am thinking do something in websiteB .htaccess?
My goal is in websiteB html able to display photo with it own domain,
<img src="http://websiteB/photos/1.jpg" />
Edit: I think the question ask it this way is better in order user request http://websiteB/photo/1.jpg, the backend actually request the file from http://websiteA/photo/1.jpg, any idea do from .htaccess?
I am new in htaccess, I tried in .htaccess, but not success
RewriteEngine On
RewriteRule http://websiteA/photos/1.jpg http://websiteB/photos/1.jpg[NC,L]
Many Thanks!!!
PS: Solution need to work either windows / linux environment.