Forum Moderators: phranque

Message Too Old, No Replies

Load website assests from differen location

.htaccess,redirects, mod rewrite

         

bluecomp

8:12 am on Feb 25, 2012 (gmt 0)

10+ Year Member



Hello Guys,

I have a website which contains GBs of assets. We moved all assets to amazon S3 and it is extremely difficult to update all paths in the site. Is there anything with which we can do the following... For example

I have images paths in the database like this
[oldsite.com...]

and want to load all those images from
[s3.amazonaws.com...]

I wanted to do this with .htaccess so that whenever any image,video,audio,pdf is called with old reference, it is loaded from new server.

Please help.

Thanks in advance.

g1smd

8:25 am on Feb 25, 2012 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



You could use a RewriteRule as a reverse proxy, but that will make your server work twice as hard and slow down the site even further.