jaymc Posted June 7, 2009 Share Posted June 7, 2009 I use this Rule to enable me to call images from an external domain just by calling "/image" RewriteRule ^image/(.+)$ http://image.site.co.uk/$1 [R=301,L] It works fine so I can have <img src="/image/pic.jpg"> instead of <img src="http://image.site.co.uk/image/pic.jpg"> However, Im worried because of the redirect it will cause a lot of overhead? http://image.site.co.uk is actually lighttpd just for images but I guess the ReWrite means my apache will still essentially carry some of the load for images Should I be concerned? Is there a better way.. p.s - this is also to help with https:// warnings if you link an image from http Link to comment https://forums.phpfreaks.com/topic/161301-mod-rewrite/ Share on other sites More sharing options...
trq Posted June 8, 2009 Share Posted June 8, 2009 Sounds like a better solution would be mod_proxy. Link to comment https://forums.phpfreaks.com/topic/161301-mod-rewrite/#findComment-851240 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.