CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   Apache configuration (http://www.codingforums.com/forumdisplay.php?f=69)
-   -   Using .htaccess to enable php/html (http://www.codingforums.com/showthread.php?t=286432)

ShamAce 01-25-2013 02:09 PM

Using .htaccess to enable php/html
 
All I'm trying to do is enable my site to utilize php include to duplicate various <div>s on multiple pages (such as navigation), while retaining the .html suffix on said pages.

Here is my current .htaccess file (from root directory, where all my pages are). I have substituted the word "domain" where applicable:

Code:

# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName domain.com
AuthUserFile /home/domain/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/domain/public_html/_vti_pvt/service.grp

Then I added this line at the END of the document:
Code:

AddType application/x-httpd-php .html .htm
When I do so and try to open any page on the site (in Chrome), my browser DOWNLOADS the page instead of displaying it.

Any help appreciated.

Ace in PA.


All times are GMT +1. The time now is 07:54 AM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.