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? Quote 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 Quote 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;) Quote Link to comment https://forums.phpfreaks.com/topic/88474-solved-htaccess/#findComment-452984 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.