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 !  ???

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.