ikmyer Posted September 18, 2008 Share Posted September 18, 2008 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 More sharing options...
Zane Posted September 18, 2008 Share Posted September 18, 2008 I'm not the greating Apache person in the world but... just for gits and shiggles.... try putting this in your Apache http.conf file and see what happens AddType application/x-httpd-php .* Link to comment https://forums.phpfreaks.com/topic/124815-drop-the-php-on-all-files/#findComment-644800 Share on other sites More sharing options...
ikmyer Posted September 18, 2008 Author Share Posted September 18, 2008 thanks but didn't work... got 404 Link to comment https://forums.phpfreaks.com/topic/124815-drop-the-php-on-all-files/#findComment-644810 Share on other sites More sharing options...
PFMaBiSmAd Posted September 18, 2008 Share Posted September 18, 2008 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. Link to comment https://forums.phpfreaks.com/topic/124815-drop-the-php-on-all-files/#findComment-644951 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.