Jump to content

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.

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.