Jump to content

Mod Rewrite


jaymc

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.