Go Back   HostGator Peer Support Forums > Public Forums > Suggestions

Notices

Reply
 
Thread Tools
  #1  
Old 02-22-2006, 07:47 AM
Prosumer Prosumer is offline
Hatchling Croc
 
Join Date: Feb 2006
Posts: 2
Smile PHP Code in HTML files

I've searched these archives before and couldn't find the answer to a simple question: How do I use the .htaccess file to allow .html files to parse php code?

I really appreciate it!

Thanks.
Reply With Quote
  #2  
Old 02-22-2006, 08:52 AM
Serra's Avatar
Serra Serra is offline
Veteran Croc
 
Join Date: Feb 2005
Location: Orange Park, FL
Posts: 5,073
Default Re: PHP Code in HTML files

You don't! Because that is NOT a good idea. Rename the files to .php, you'll be much happer with that setup.

Hint: if you really must, search for parcing html files for SSI.
__________________
Six stages of Dedi Ownership

Fashionable broken link
image included
Reply With Quote
  #3  
Old 02-22-2006, 10:14 AM
twisty twisty is offline
Baby Croc
 
Join Date: Nov 2005
Posts: 50
Default Re: PHP Code in HTML files

Quote:
Originally Posted by Prosumer
I've searched these archives before and couldn't find the answer to a simple question: How do I use the .htaccess file to allow .html files to parse php code?

I really appreciate it!

Thanks.
AddType application/x-httpd-php .php .html
Reply With Quote
  #4  
Old 02-22-2006, 01:56 PM
Unregistered
HostGator Guest
 
Posts: n/a
Thumbs up Re: PHP Code in HTML files

thanks twisty, that's just what I was hoping to know.
Reply With Quote
Reply

Bookmarks

Thread Tools

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 Off
HTML code is Off

Forum Jump

All times are GMT -5. The time now is 10:06 PM.