Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Aug 2007
    Thanked 0 Times in 0 Posts

    404 page redirect


    I have just replaced static html files with a single php page/id based file system.

    I was wondering if anyone had a script that could do the following:

    take a requested url (www.???.com/whatever.html) and if it doesn't exist, shoot them to a custom 404 page. On this 404 page, there is a script that says "if request was www.???.com/whatever.html, then redirect to www.???.com/this.php. The script could refer to a file with an array/list of old htmls and the new php page.

    Yes, I know I can just do a meta-redirect in the title section of each html file, but I am trying to avoid leaving any old html files in the original directories.

    Any help would be greatly appreciated.


  • #2


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts