Jump to content

PHP pages missing the .php extension resolved to non-existent directories...


supert3d

Recommended Posts

OK. I have a really strange problem.

 

Lets say, for example, I have the following URL  http://www.mysite.com/new_page.php

 

Now typically, if I forgot to add .php to the end (making the URL  http://www.mysite.com/new_page ) it would try and resolve this as a directory. Apache wouldn't find it and then throw me a 404 error.

 

However. For some reason, the current Apache 1.3 server configuration is running http://www.mysite.com/new_page/ as if it were the script  :-\ and for the life of me I cannot figure out how to stop it !

 

I've researched the RewriteRule stuff in the Apache documentation, and even temporarily ripped all of my RewriteRule's and RewriteBase and even removed the RewriteEngine setting from my .htaccess file.

 

Does anyone have any idea, have you come across this before ? It's really starting to do my head in !  ???

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.