View Single Post
Old 01-25-2013, 02:09 PM   PM User | #1
ShamAce
New to the CF scene

 
Join Date: Aug 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
ShamAce is an unknown quantity at this point
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.
ShamAce is offline   Reply With Quote