dennismonsewicz Posted January 26, 2009 Share Posted January 26, 2009 What is the best way to go about creating your own 404 errors? So, if a user tries to access a page or file that doesn't exist they will be redirected to a 404 error page. Quote Link to comment Share on other sites More sharing options...
ratcateme Posted January 26, 2009 Share Posted January 26, 2009 are you using a apache server? normally the best way is a .htaccess file or editing the main server configuration Scott. Quote Link to comment Share on other sites More sharing options...
premiso Posted January 26, 2009 Share Posted January 26, 2009 Edit: Beaten to it. =) Modify your .htaccess page and set that error to goto a page say 404.php. At least that is how I do it. Quote Link to comment Share on other sites More sharing options...
dennismonsewicz Posted January 26, 2009 Author Share Posted January 26, 2009 ah gotcha... i was thinking about checking the URL and if that page doesn't exist then do a redirect but the .htaccess seems a heck of a lot better lol Quote Link to comment 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.