arcademint.com Posted July 7, 2007 Share Posted July 7, 2007 Sorry for double post.. Hello friends, happy to see you again. i need a help with .htaccess rewrite file.. i have 2 sites hosted in same Hosting account. and have a folder called "Images". i want to use that same folder in both sites.. but i dont want to display my first site name in second one.. example file location: public_html/site1/images/example.jpg - it will work when i type : http://www.site1.com/images/example.jpg i want to use the same folder from my other hosting. (hosted in same account.) example : public_html/site2/ , but there is no "images" folder. i want the site2 use "images" from public_html/site1/images . but without displaying domain : http://www.site1.com to users.. i want it to work with : http://www.site2.com/images/example.jpg Thanks A Lot. Link to comment https://forums.phpfreaks.com/topic/58881-i-need-a-help-with-htaccess-rewrite-fileplease/ Share on other sites More sharing options...
sKunKbad Posted July 9, 2007 Share Posted July 9, 2007 Options FollowSymLinks rewriteEngine on rewriteRule ^http://www.site1.com/images/(.*).jpg /http://www.site2.com/images/$1.jpg try putting that in your .htaccess file Link to comment https://forums.phpfreaks.com/topic/58881-i-need-a-help-with-htaccess-rewrite-fileplease/#findComment-292995 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.