Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
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
Reply

Bookmarks

Tags
.htaccess, php, php include

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:35 PM.


Advertisement
Log in to turn off these ads.