I am trying to setup a clean URL navigation, but I am having some trouble with internal server errors. I am basically trying to force the php type on a file called 'content', so I can have files such as www.mysite.com/content/blah/344. Anyways, this is what I was told to add to the .htaccess file:
and this is the content file in the same directory:
I want it to work on my main server, but it doesn't. My main server is running cPanel with php4 and Apache 1.3. This technique does work on my home webserver running php5 and Apache2, and it does work on my shared hosting account running php4 and Apache 1.3. When I get the internal server error, I look in the error log and see that the error says "Premature end of script headers." If I look at my suExec log, it says the script doesn't have executable permissions.
Any ideas? Thanks.
Code:
<FilesMatch "^content$">
ForceType application/x-httpd-php
</FilesMatch>
Code:
<?php
header('Content-type: text/html');
echo 'It works!!';
?>
Any ideas? Thanks.