Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-13-2006, 02:20 PM   PM User | #1
MRMAN
Regular Coder

 
Join Date: Jan 2006
Location: Preston, Lancashire, England
Posts: 285
Thanks: 0
Thanked 0 Times in 0 Posts
MRMAN is an unknown quantity at this point
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
MRMAN is offline   Reply With Quote
Old 02-13-2006, 02:52 PM   PM User | #2
degsy
Senior Coder

 
Join Date: Nov 2002
Location: North-East, UK
Posts: 1,265
Thanks: 0
Thanked 0 Times in 0 Posts
degsy is on a distinguished road
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.
degsy is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:34 PM.


Advertisement
Log in to turn off these ads.