View Full Version : If page not found do something else.

02-13-2006, 03:20 PM

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.



02-13-2006, 03:52 PM
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.