Point a URL that loads an image to an html page?

  • Matthew
  • Proficient
  • Proficient
  • User avatar
  • Posts: 266
  • Loc: Canada

Post 3+ Months Ago

I have an image that was hotlinked like crazy:
http://xona.com/postattachments/avast_b ... lexa_2.png

Right now it loads a 404 page (as I pulled the image), but how can I make http://xona.com/postattachments/avast_b ... lexa_2.png load something else, as I know tons of hits are coming to it?

I could do this with .htaccess I believe. Is that the only way?
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • UPSGuy
  • Lurker ಠ_ಠ
  • Web Master
  • User avatar
  • Posts: 2733
  • Loc: Nashville, TN

Post 3+ Months Ago

Looks like there may be a few ways to achieve what you're wanting, dependent on your setup. Apache appears to have some rule functionality. You could also try it out via script, or you could go with htaccess, as you mentioned. If you have a preference, maybe we can help you chase down the best-case solution.

This approach seemed particularly interesting to me.
  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8388
  • Loc: USA

Post 3+ Months Ago

That approach was interesting... I think I may do that ...

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 61 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.