Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

maclover001

macrumors 6502a
Original poster
Mar 25, 2008
895
0
Vancouver, Canada
Some genius I'm trying to host a site for used ".php5" file extensions instead of ".php", and now it doesn't seem to work on my OS X server (It used to be hosted with GoDaddy).

Is there a way to (a) get the .php5 file extension working, or (b) alias file extensions?

Thanks
 
In the httpd.conf there should be a line similar to,
Code:
AddType application/x-httpd-php .php .phtml
A .php5 extension can be added here. You likely don't have access to the httpd.conf file though so you'll need to set this up through a .htaccess file and put that in your root directory of your site. That should work as long as your web host allows it.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.