Page 1 of 1

PHP execute on different file extension

Posted: Tue Dec 20, 2005 3:04 pm
by HiddenS3crets
I'm trying to allow php run on a different extention. I tried doing this in a .htaccess file, but it did not work

Code: Select all

AddType application/x-httpd-php .ext
Is that the right mime type to use?

Posted: Tue Dec 20, 2005 4:34 pm
by josh
if

Code: Select all

AddType application/x-httpd-php .ext
does not work then either:

your host doesn't allow this type of override in their httpd.conf file, ask them if they can change this
your host uses something other then .htaccess files (it could be an arbitrary file name, contact your tech support dept.)
your host doesn't allow overides in any kind of file (ask them to add it manually for your virtualhost, if they can not accommodate you switch hosts.

I hate how shared hosting is degrading in quality to the level of free hosting, that is why I shell out the 25 bucks a month for a virtual private server