<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>JasonSamuel.com &#187; htaccess</title>
	<atom:link href="http://www.jasonsamuel.com/tag/htaccess/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jasonsamuel.com</link>
	<description>Cool stuff I see in the IT world</description>
	<lastBuildDate>Wed, 25 Jan 2012 21:05:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>How to parse HTML files as PHP on an Apache web server</title>
		<link>http://www.jasonsamuel.com/2009/05/18/how-to-parse-html-files-as-php-on-an-apache-web-server/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-parse-html-files-as-php-on-an-apache-web-server</link>
		<comments>http://www.jasonsamuel.com/2009/05/18/how-to-parse-html-files-as-php-on-an-apache-web-server/#comments</comments>
		<pubDate>Mon, 18 May 2009 19:59:00 +0000</pubDate>
		<dc:creator>Jason Samuel</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.jasonsamuel.com/?p=65</guid>
		<description><![CDATA[Someone asked me today for help with their PHP website.  He was trying to parse HTML files as PHP on his Apache webserver. This is very easy to do using the .htaccess file but he just could not seem to get his files to parse using the instructions he found on Apache&#8217;s website: AddType application/x-httpd-php [...]<p><a href="http://www.jasonsamuel.com/2009/05/18/how-to-parse-html-files-as-php-on-an-apache-web-server/">How to parse HTML files as PHP on an Apache web server</a> is a post from: <a href="http://www.jasonsamuel.com">JasonSamuel.com</a></p>
]]></description>
			<content:encoded><![CDATA[<p>Someone asked me today for help with their PHP website.  He was trying to parse HTML files as PHP on his Apache webserver. This is very easy to do using the .htaccess file but he just could not seem to get his files to parse using the instructions he found on Apache&#8217;s website:</p>
<blockquote><p>AddType application/x-httpd-php .html</p></blockquote>
<p>The thing to remember with something as diverse as Apache and PHP, different hosts will have different configurations. For example, some hosts runs both PHP4 and PHP5. In this case, he was hosting the company website through HostGator. This is what had to be added to the htaccess file to get it to correctly parse the files:</p>
<blockquote><p>AddHandler application/x-httpd-php5 .html .htm</p></blockquote>
<p>With other hosts, you can get away with:</p>
<blockquote><p>AddType application/x-httpd-php .html .htm</p></blockquote>
<p>or</p>
<blockquote><p>AddHandler application/x-httpd-php .html .htm</p></blockquote>
<p>or</p>
<blockquote><p>AddHandler x-httpd-php .html .htm</p></blockquote>
<p>And still yet, some hosts require both AddHandler and AddType directives for it to work correctly:</p>
<blockquote><p>AddType application/x-httpd-php .htm .html<br />
AddHandler x-httpd-php .htm .html</p></blockquote>
<p>Hope this helps. Leave a comment if you have any questions.</p>
<p><a href="http://www.jasonsamuel.com/2009/05/18/how-to-parse-html-files-as-php-on-an-apache-web-server/">How to parse HTML files as PHP on an Apache web server</a> is a post from: <a href="http://www.jasonsamuel.com">JasonSamuel.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jasonsamuel.com/2009/05/18/how-to-parse-html-files-as-php-on-an-apache-web-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Served from: www.jasonsamuel.com @ 2012-02-09 18:00:35 -->
