Forum Moderators: phranque

Message Too Old, No Replies

Partial display of Website Contents ( using .htccess file )

Few of the website display partial contents

         

Moan

2:53 pm on Mar 19, 2011 (gmt 0)

10+ Year Member



We are having issue after we migrated the server wherein few of website using .htaccess file is either displaying partially or blank page display.



is reflecting some error and partial display of contents whereas we converted this file to php is working fine


since all the files are in html format we need some solution to make this work..

coopster

5:07 pm on Mar 19, 2011 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Sounds like you need to add a handler [httpd.apache.org] to parse your pages with htm/html extensions as PHP.
AddHandler php5-script php htm html

Moan

6:09 am on Mar 22, 2011 (gmt 0)

10+ Year Member



in one website the title shown as below
<title><?php echo $title; ?></title>

in one of the website
in the body content

$total ) { echo ""; } if($chkr==0) { echo ''; } ?>

' class="img" >


' class="img" >

i tried to add the above handler to the .htaccess file but didnot work

coopster

10:36 pm on Mar 22, 2011 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



The example I used is a PHP5 default handler-name [httpd.apache.org]. There has been much confusion in the past regarding AddHandler and AddType. Check with your server administrator or hosting partner for the proper name to use. Don't forget to reboot the server if you add it to the conf and not in a per-directory access (.htaccess) file.