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-11-2011, 11:08 PM   PM User | #1
mssteph
New Coder

 
Join Date: Jul 2008
Location: MD, USA
Posts: 65
Thanks: 16
Thanked 0 Times in 0 Posts
mssteph is an unknown quantity at this point
Using PHP in .shtml pages

I have a huge site with all .shtml extensions and includes, and I want to use some PHP includes sitewide... but when I do and rename the file with a .php extension, the .shtml includes don't show.

My htaccess is this right now:

Code:
Options +Includes
AddType text/html .shtml .shtm .htm .html
AddHandler server-parsed .shtml
AddHandler application/x-httpd-php .shtml .shtm .htm .html
AddHandler php5-cgi .php
What can I do, if anything, to be able to show both the existing .shtml includes and the new PHP includes? Or am I out of luck and I have to rename every .shtml to PHP? Thanks.
mssteph is offline   Reply With Quote
Reply

Bookmarks

Tags
htaccess, php, shtml

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:04 AM.


Advertisement
Log in to turn off these ads.