mind-owner Posted November 10, 2007 Share Posted November 10, 2007 well this is my .htacces fileRewriteEngine OnRewriteRule ^(.*)/(.*).png index.png?bg=$1&text=$2RewriteRule index.png index.phpI only have 6 bgs "pictures" so if some one will put "?bg=7" the gd library script will show a error "didn't find the picture"How could I With a php script redirect the page to another one if picture "bg" not found? Link to comment Share on other sites More sharing options...
MrAdam Posted November 10, 2007 Share Posted November 10, 2007 not sure if this is what your after but something like.. if ($_GET['bg']>6) header("Location: errorpage.php"); or perhaps.. if (!file_exists("path/".$_GET['bg'].".png") header("Location: errorpage.php"); Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.