Forum Moderators: phranque
DirectoryIndex index
<Files *>
ForceType application/x-httpd-php
</Files>
We are porting to Apache with FastCGI on Windoze but it seems like it is impossible to run files without extensions under CGI/FastCGI. I tried everything I've found on the net, but nothing, nema ništa, rien, nada is working... I tried e.g.:
SetHandler cgi-script
ForceType application/cgi-php
et cetera...
I know it is possible to go extensionless with IIS 7.0 but there are other issues preventing me there. Anyone out there with a super and working solution?
Happy coding!
-------------------------------------------------------
The more I want something done, the less I call it work
- Richard Bach
RewriteEngine On
RewriteBase /sites/test/rewrite
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^([a-z]*)$ $1.php [NC,L]
BUT, I don't want a redirect, I just want php to handle all files but can't do that with ForceType and FastCGI. I tried
DefaultType application/x-httpd-php in httpd.conf, but to no avail.
Any ideas will be very much appreciated! :-)