Wordpress - image.php - if no image redirect to home

Posted by elmas on Stack Overflow See other posts from Stack Overflow or by elmas
Published on 2009-12-26T21:35:57Z Indexed on 2010/03/18 4:01 UTC
Read the original article Hit count: 283

Filed under:

hello, i use a script for my image.php.. the url with an image looks like this:

/image.php?title=Alyssa Milano Unicef&description=Alyssa Milano Unicef&url=uploads/2009/12/alyssa_milano_unicef_05.jpg

But if someone types directly www.site.com/image.php it shows a blank site.. a redirection would be nice, to the 404page or startpage.. i know it must something like "if else".. if image - then show the page.. if there no pic go to 404 or the startpage.. thank your for helping!

© Stack Overflow or respective owner

Related posts about Wordpress