.php pages

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
matt1234
Forum Commoner
Posts: 44
Joined: Wed Nov 26, 2008 9:43 pm

.php pages

Post by matt1234 »

I have a couple websites on different hosting servers. On one, in order to get to http://www.website.com/page.php, I can simply put in http://www.website.com/page and it will go to the same place. On another, I have to type in http://www.website.com/page.php and just /page brings up a 404 error. Where do I find settings for that?
User avatar
Darhazer
DevNet Resident
Posts: 1011
Joined: Thu May 14, 2009 3:00 pm
Location: HellCity, Bulgaria

Re: .php pages

Post by Darhazer »

This is apache setting, called MultiViews
In order /page to resolve page.php you have to set

Code: Select all

Options +MultiViews
in your .htaccess
matt1234
Forum Commoner
Posts: 44
Joined: Wed Nov 26, 2008 9:43 pm

Re: .php pages

Post by matt1234 »

I did some research on it to see how to do it
I put it inside <Files></Files> and it gave me a 500 internal server error for any page where it wasn't a full URL with page name and extension
matt1234
Forum Commoner
Posts: 44
Joined: Wed Nov 26, 2008 9:43 pm

Re: .php pages

Post by matt1234 »

Any ideas why this would happen? Or maybe a different solution?
Post Reply