phorcon3 Posted January 29, 2008 Share Posted January 29, 2008 when people link to http://www.example.com/images/test.png ..and test.png doesn't exist I'd like to redirect em to the page 404.php. does anyone know how to do this? would you have to use a htaccess file? Link to comment https://forums.phpfreaks.com/topic/88474-solved-htaccess/ Share on other sites More sharing options...
vicodin Posted January 29, 2008 Share Posted January 29, 2008 Put this in the .htaccess file. ErrorDocument 404 /ThePageyouWant.html Link to comment https://forums.phpfreaks.com/topic/88474-solved-htaccess/#findComment-452954 Share on other sites More sharing options...
phorcon3 Posted January 30, 2008 Author Share Posted January 30, 2008 ha! thanks;) Link to comment https://forums.phpfreaks.com/topic/88474-solved-htaccess/#findComment-452984 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.