Web Hosting Talk







View Full Version : Need to mod_rewrite - BANDWIDTH Problem


TheRealDeal
05-28-2005, 01:36 AM
I have a domain that is utilizing to much bandwidth due to images:

ex:

http://hosting.domain.com/jpgs/050505/images/1.jpg
http://hosting.domain.com/jpgs/050605/images/2.jpg
http://hosting.domain.com/jpgs/050705/images/3.jpg

..etc

I need to put a mod_rewrite in:

http://www.domain.com/jpgs/.htaccess

so it will go to:

http://hosting2.domain.com/jpgs/050505/images/1.jpg
http://hosting2.domain.com/jpgs/050605/images/2.jpg
http://hosting2.domain.com/jpgs/050705/images/3.jpg

Note: Members will still view: http://www.domain.com/jpgs/050505/index.html but the images are leeching from hosting2.domain.com instead but the files are leeching from hosting1.domain.com.


Here is what I got but not working.

RewriteRule ^.(jpg|JPG|gif|GIF) http://hosting.domain.com/jpgs/$1 [R]



Thanks in advance.!! Please help.