Focus Global Community

Members Login
Username 
 
Password 
    Remember Me  
Post Info TOPIC: .htaccess, AddType application/x-httpd-php .php .htm .html, and maybe a Fix...


Senior Member

Status: Offline
Posts: 183
Date:
.htaccess, AddType application/x-httpd-php .php .htm .html, and maybe a Fix...
Permalink   
 


Hi, After about 24 Hours of Trial and Error I finally got my site Validated.

I traced it to the .htaccess file. When I was bringing up my site, the ads wouldn't show and the .php wouldn't execute. And sometimes my Browser would try to download the webpage instead of just view it. So I went back and forth on tech support with my ISP LunarPages.

Seems they run something called suPHP and the contents of .htacess must be:

AddType x-httpd-php .php .htm .htm

(notice it doesn't have the 'application/' in it.)

I guess suPHP doesn't like the 'application/' .

I am new at this, but it might work for you if you are having a rough time..



LegalClips.com



__________________


Senior Member

Status: Offline
Posts: 183
Date:
Permalink   
 

Try adding that code lines in apache.httpd.conf

<IfModule mod_mime.c>
AddType application/x-httpd-php .php
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .html
AddType application/x-httpd-php-source .phps
</IfModule>
Save it and restart apache with command : apachectl restart
you have more info at http://bugs.php.net/bug.php?id=27580



__________________
Page 1 of 1  sorted by
 
Quick Reply

Please log in to post quick replies.

Tweet this page Post to Digg Post to Del.icio.us


Create your own FREE Forum
Report Abuse
Powered by ActiveBoard