php4+php5(cgi)+htaccess(rewrite) problem

euroxsw

Member
Aug 30, 2002
19
0
151
Dear All,

We have several servers run cPanel. On one, we setuped php4+php5(cgi) mode. Everything looks fine but have a problem with php5+htaccess(rewrite module). The php5 file have not got the value on this server... Actually, the test php page working when we disable the rewrite rule in htaccess file..... Anybody can help or advice? Thanks.

like this http://206.132.83.120/~hsdts/test.php

code of this php5 file
<?php
var_dump($_POST);
?>
<form method=post action="test.php">
<input type="text" name="hello"><input type="submit">

php5 info page
http://206.132.83.120/~hsdts/info.php

htaccess file
Options +FollowSymLinks +ExecCGI

<IfModule mod_rewrite.c>
RewriteEngine On

RewriteCond %{REQUEST_URI} \..+$
RewriteCond %{REQUEST_URI} !\.html$
RewriteRule .* - [L]

RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f

RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>

ErrorDocument 500 "<h2>Application error</h2>symfony application failed to start properly"

AddHandler application/x-httpd-php5 .php .php4 .php3 .phtmla