I'm still learning to use PHP and would like to add an action to my present PHP re-direct coding. If the required file can't be found I would like an action which could possibly search the files in the web directory and when the script does not find the requested files or pages it re-redirects instead of the default 404 page. Can anyone show me, if it's possible, how it's done.
redirect via .htaccess create a .htaccess file: ErrorDocument 404 http://www.yourdomain.com/404page.php Code (markup): // science
It really depends on what webserver you're using, .htaccess is only for Apache. If you're using Apache then just use the htaccess code that science created for you. I got that from a website, I can't paste the link because of my user level, so don't credit me.
Thanks everyone. Cracked it with the .htaccess file directing it to my own error page. Tip: It didn't work when creating the .htaccess file in Notepad but did when using WordPad. Thanks again.
WordPad instead of Notepad Working ?? That is totally absurd but since you got it working, that is what matters !!!!!!