SZero Posted September 14, 2007 Share Posted September 14, 2007 hi every1.. in many sites, when i try to go to a page that doesn't exits, it transferes me to a page saying so instead of showing the annoying page cannot be found, how to do this?? ty Quote Link to comment https://forums.phpfreaks.com/topic/69267-transfering-me-to-a-page-when-i-follow-a-wrong-link/ Share on other sites More sharing options...
marcus Posted September 14, 2007 Share Posted September 14, 2007 File: .htaccess DirectoryIndex index.php ErrorDocument 404 /error404.php File: error404.php [store in main directory {public_html}] <?php header("Location: index.php"); ?> Will redirect the user to the index Quote Link to comment https://forums.phpfreaks.com/topic/69267-transfering-me-to-a-page-when-i-follow-a-wrong-link/#findComment-348068 Share on other sites More sharing options...
SZero Posted September 14, 2007 Author Share Posted September 14, 2007 it doesn't work, i put the 2 files in the root directory (where the index is) but still nothing.. any ideas?? Quote Link to comment https://forums.phpfreaks.com/topic/69267-transfering-me-to-a-page-when-i-follow-a-wrong-link/#findComment-348290 Share on other sites More sharing options...
SZero Posted September 15, 2007 Author Share Posted September 15, 2007 up Quote Link to comment https://forums.phpfreaks.com/topic/69267-transfering-me-to-a-page-when-i-follow-a-wrong-link/#findComment-348878 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.