Using AddHandler in .htaccess for extensionless files
Posted: Thu May 27, 2004 3:09 pm
Dear All
I've been told by my nice web hosting company support team that I need to use the following apache directive in order to use the CGI version of PHP on my webserver so that files uploading to my server through a PHP script will be uploaded under the ownership of my web server user name:
AddHandler cgi-script .php
However, my server is setup so that extensionless files (i.e. dot nothing) are run as PHP files. This is done for a number of reasons.
How do I use the equivalent of the above directive, but for extensionless files?
Many thanks
Mark
I've been told by my nice web hosting company support team that I need to use the following apache directive in order to use the CGI version of PHP on my webserver so that files uploading to my server through a PHP script will be uploaded under the ownership of my web server user name:
AddHandler cgi-script .php
However, my server is setup so that extensionless files (i.e. dot nothing) are run as PHP files. This is done for a number of reasons.
How do I use the equivalent of the above directive, but for extensionless files?
Many thanks
Mark