+ Reply to Thread
Results 1 to 6 of 6

Thread: redirect images

  1. #1
    Josh is offline Uber No0b Josh is an unknown quantity at this point
    Join Date
    Jan 2005
    Posts
    197

    redirect images

    I'm running low on bandwidth and im getting an unmetered server, I'm going to put all the images on it, but currently a lot of people are hotlinking my files (which I want), but is there a way to redirect all images, for instance coolsite.com/images/asdf/1.jpg to coolsite2.com/images/asdf/1.jpg? So if someone's hotlinking my image they're actually hotlinking coolsite2 and using it's bandwidth?

    Im thinking this can be done with htaccess
    Last edited by Josh; 08-16-2006 at 08:22 PM.

  2. #2
    Brandon's Avatar
    Brandon is offline Former Senior Account Rep Brandon is on a distinguished road
    Join Date
    Jun 2006
    Location
    Tewksbury, MA
    Posts
    9,589

    Re: redirect images

    Quote Originally Posted by Josh
    I'm running low on bandwidth and im getting an unmetered server, I'm going to put all the images on it, but currently a lot of people are hotlinking my files (which I want), but is there a way to redirect all images, for instance coolsite.com/images/asdf/1.jpg to coolsite2.com/images/asdf/1.jpg? So if someone's hotlinking my image they're actually hotlinking coolsite2 and using it's bandwidth?

    Im thinking this can be done with htaccess
    Id say just take coolsite.com on that server and be done with it. The optherway it to make .jpg a php handler and to then redirect it to the new image location.
    Thanks,
    Brandon Long

  3. #3
    Josh is offline Uber No0b Josh is an unknown quantity at this point
    Join Date
    Jan 2005
    Posts
    197

    Re: redirect images

    coolsite.com uses a lot of resources, and the unmetered server is a crappy celeron, so it wouldn't survive if i did that

    also i have no idea what you mean by php handler
    Last edited by Josh; 08-16-2006 at 08:47 PM.

  4. #4
    Livewire's Avatar
    Livewire is offline Abuse Compliance Officer Livewire is a glorious beacon of lightLivewire is a glorious beacon of light
    Join Date
    Jun 2005
    Location
    Behind a keyboard.
    Posts
    8,998

    Re: redirect images

    I think what he meant with coolsite.com is move coolsite.com to the server coolsite2's on, then fix the dns records or whatever they're called for coolsite.com to look at the coolsite2.com server.

    And by php handler, I think he means make a php script that loads in place of all jpg's, and redirects all requests for the images to coolsite2. I'm probably highly mistaken, but I think you might be able to pull this off with a .htaccess file (I got one set up for my userbars on my site, it doesn't let you load the image directly, but if you go through the php script it'll load). Try looking for a .htaccess tutorial and see what you can find

  5. #5
    Corey's Avatar
    Corey is offline VPS Migration Professional Corey is a glorious beacon of lightCorey is a glorious beacon of light
    Join Date
    Dec 2004
    Location
    Northfield, NH
    Posts
    17,151

    Re: redirect images

    Use mod_rewrite with the .htaccess

    -Corey

  6. #6
    Josh is offline Uber No0b Josh is an unknown quantity at this point
    Join Date
    Jan 2005
    Posts
    197

    Re: redirect images

    Quote Originally Posted by Corey
    Use mod_rewrite with the .htaccess

    -Corey

    How would I do that, could you give me an example?

+ Reply to Thread

Similar Threads

  1. Problems upload images using Zoom Gallery
    By ivan_andrei_09 in forum Free Hosting
    Replies: 8
    Last Post: 07-18-2006, 07:00 PM
  2. IPBoard .PNG Transparent Images
    By WeeRowan in forum Free Hosting
    Replies: 27
    Last Post: 12-19-2005, 05:38 AM
  3. Cpanel Redirect problem
    By BigEmmaFanz in forum Free Hosting
    Replies: 5
    Last Post: 12-10-2005, 04:51 PM
  4. Images no show...
    By Starskey in forum Free Hosting
    Replies: 8
    Last Post: 10-05-2005, 11:00 PM
  5. How Do You Redirect?
    By TarinC in forum Off Topic
    Replies: 2
    Last Post: 10-02-2005, 11:01 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers