Jump to content

drop the .php on all files


Recommended Posts

Hello,

 

I have recently been working on 2 different servers... one Fedora and one Ubuntu

 

On the Fedora server you have to included the .php on the endings of all the files.  ( hxxp://www.mysite.com/test.php )

 

On the Ubuntu server you do NOT have to include the .php on the end so hxxp://www.mysite.com/test would load the same page as test.php.

 

Anyone know how I can set this up on the Fedora server ?

Thanks

 

Link to comment
https://forums.phpfreaks.com/topic/124815-drop-the-php-on-all-files/
Share on other sites

I don't believe the question is to make an extension-less file to be parsed as a .php file, but rather allow an extension-less request to resolve to a corresponding .php file.

 

Your one server likely has a mod_rewrite rule in a .htaccess file that is making this happed. Check what is in any .htaccess files present.

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.