Friendly urls using forcetype in htaccess

Friendly urls using forcetype in htaccess

Posted by: Wasiutynski
Posted on: 2008-02-01 12:00:00

Hello,
I've been trying to lunch php file without the .php extension.
This is how my .htaccess file look like:
<Files index>
ForceType application/x-httpd-php
</Files>
But it doesn't work. It generates blank page.
What is wrong? How can I get it work?

Re: Friendly urls using forcetype in htaccess

Posted by: sXi
Posted on: 2008-02-01 12:19:00

AddHandler php-cgi .php
Action php-cgi /cgi-bin/php.cgi
ForceType php-cgi


* Works with a custom php.

Re: Friendly urls using forcetype in htaccess

Posted by: GreyBard
Posted on: 2008-08-19 10:40:00

just ran into this problem. funny thing is that it was working fine, then we installed word press and the forcetype started using PHP 4. Support came back and told us that the forcetype mime type of application/x-httpd-php is only mapped to PHP 4 and that for PHP 5 you will need to change the mime type mapping to php5-cgi

so use the force...

ForceType php5-cgi

Solved our issues.

Tags: htaccess filephp extensionurlshtaccess filephp extensionurls