Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Jan 2006
    Location
    Preston, Lancashire, England
    Posts
    285
    Thanks
    0
    Thanked 0 Times in 0 Posts

    If page not found do something else.

    Hello.

    I am setting up a site which is PHP driven. basically the main user is able to add pages to the site, this is done using FCKeditor. They enter the content into the editor press submit and a htm page is created and the location is stored into a database. This way i am make sure that page header and menus are the same in the site.

    but i was wondering if anyone knew of a way that if someone types in http://sitename/folder1/pagename.htm i can make it go to the index.php file and then call the folder1/pagename.htm.

    Cheers

    MRMAN

  • #2
    Senior Coder
    Join Date
    Nov 2002
    Location
    North-East, UK
    Posts
    1,265
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You have a couple of options.
    You could create a custom404 error page that redirect the user.

    You could setup mod_rewrite so that when a url of that type is enetered it is redirected to the correct page.

    Ask your host about it.


  •  

    Posting Permissions

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