Reputation: 153
Wonder, I'm bulling a system that I will be able to upload to another hosting with domain just 1 file like: index.php and this file will calling to some other file in another server and print the html he got.
so right now, there is a option to do, when I print:
<img border="0" src="images/logo.jpg" alt="" />
something in the .htaccess or something will now that this image is on:
http://www.masterdomain.com/images/template_1/
?
I tried: RewriteRule ^images/(.*)$ http://www.masterdomain.com/images/template_1/$1
but it's not working very well, I need also css so I believe it's the same command.
Thank you all!
Upvotes: 0
Views: 1974
Reputation: 9509
Try
RewriteRule ^images/(.*)$ http://www.masterdomain.com/images/template_1/$1 [NC,P]
The P flag will proxy your request to the masterdomain server
Upvotes: 1