Sunday, 15 April 2012

php 5.4 - Problems with .htaccess after upgrading to PHP 5.4 -



php 5.4 - Problems with .htaccess after upgrading to PHP 5.4 -

i have had difficulties site after updating servers utilize php version 5.4.. have been through lot of back upwards tickets , browsed net 2 days.. need inquire straight people know it.

after updating php version started 500 error on pages , turned out rewrite rules in htaccess file wasn't working anylonger. did in php version 5.2 not in 5.4.

<ifmodule mod_rewrite.c> rewriteengine on rewritebase / # if request valid directory rewritecond %{request_filename} -d [or] # if request valid file rewritecond %{request_filename} -f [or] # if request valid link rewritecond %{request_filename} -l rewriterule ^ - [l] # external redirect actual url pretty 1 rewritecond %{the_request} \s/+website\.php\?id=([^\s&]+) [nc] rewriterule ^ %1? [r=302,l] rewriterule ^([\w.-]+)/?$ website.php?id=$1 [l,qsa] rewriterule ^([\w.-]+)/([\w.-]+)/?$ website.php?id=$1&page=$2 [l,qsa] </ifmodule>

can tell me have differently? appreciate it.

edit:

i got re-create livechat hostgator:

[thu jun 26 03:54:07 2014] [error] [client ] malformed header script. bad header=<br />: website.php [thu jun 26 03:55:35 2014] [error] [client ] cannot load ioncube php loader - built configuration 2.2.0, whereas running engine api220100525,nts [thu jun 26 03:55:35 2014] [error] [client ] zend engine api version 220100525 installed, newer. [thu jun 26 03:55:35 2014] [error] [client ] contact zend technologies @ http://www.zend.com/ later version of zend optimizer. [thu jun 26 03:55:35 2014] [error] [client ]

try adding line:

zend_extension = /usr/local/ioncube/ioncube_loader_lin_5.4.so

to php.ini

.htaccess php-5.4

No comments:

Post a Comment