Forum Moderators: phranque

Message Too Old, No Replies

.htaccess with PHP as CGI

         

gizmodo

1:00 am on Apr 16, 2009 (gmt 0)

10+ Year Member



My host has switched to run PHP as a CGI module. I have a site that uses search engine friendly URLs that no longer works. The code below used to cause a file without an extension to be parsed as PHP, now I get a page not found error. Any suggestions?

<Files show-product>
ForceType application/x-httpd-php
</Files>

Caterham

5:22 pm on Apr 16, 2009 (gmt 0)

10+ Year Member



- Don't use MIME types to invoke a handler (use SetHandler instead)
- ask your host for the correct handler name in oder to use it like

SetHandler handler-name

gizmodo

3:33 am on Apr 18, 2009 (gmt 0)

10+ Year Member



Thanks for the help. My host is completely worthless as far as support is concerned. They want me to create a wrapper for the cgi module, and then use that for the type. The problem is the directions they give me won't work to create a wrapper. Is there anyway to create a wrapper from a Windows machine to use on a linux box?