Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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

Discussion in 'General Discussion' started by euroxsw, May 10, 2006.

  1. euroxsw

    euroxsw Member

    Aug 30, 2002
    Likes Received:
    Trophy Points:
    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

    code of this php5 file
    <form method=post action="test.php">
    <input type="text" name="hello"><input type="submit">

    php5 info page

    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]

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

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

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice