<?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>{ Online Notes } &#187; Set-Up</title>
	<atom:link href="http://www.armando.ws/tag/set-up/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.armando.ws</link>
	<description>All things Technical and Personal - Armando Padilla</description>
	<lastBuildDate>Sat, 12 Jun 2010 05:06:35 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to run Zend Framework with no .htaccess file.</title>
		<link>http://www.armando.ws/2009/03/how-to-run-zend-framework-with-no-htaccess-file/</link>
		<comments>http://www.armando.ws/2009/03/how-to-run-zend-framework-with-no-htaccess-file/#comments</comments>
		<pubDate>Sat, 07 Mar 2009 06:01:32 +0000</pubDate>
		<dc:creator>Armando Padilla</dc:creator>
				<category><![CDATA[PHP Development]]></category>
		<category><![CDATA[Set-Up]]></category>
		<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://www.armando.ws/?p=337</guid>
		<description><![CDATA[Work has been overwhelming lately and frustrating but there was an interesting question asked by one of the developers at work.  Can the Zend Framework run without the .htaccess file?  The answer, Yes.

Why do we need the .htaccess file
First off why is the .htaccess file required in the first place by Zend Framework?  Think of [...]]]></description>
			<content:encoded><![CDATA[<p>Work has been overwhelming lately and frustrating but there was an interesting question asked by one of the developers at work.  Can the Zend Framework run without the .htaccess file?  The answer, Yes.<br />
<strong><br />
Why do we need the .htaccess file</strong><br />
First off why is the .htaccess file required in the first place by Zend Framework?  Think of the .htaccess file as a funnel.<br />
In a funnel, you poor water/liquid/stuff into the end contaning the larger diameter. The &#8220;stuff&#8221; is then squeezed out of a small single point at the opposite end. In the web world the &#8220;stuff&#8221; is web traffic and the the single point is where all the traffic goes through, in this case its the .htaccess file. </p>
<p>The .htaccess file will send all incoming traffic to your Front Controller which handles routing and dispatching etc.</p>
<p><strong>Removing .htaccess from the process.</strong><br />
For this im going use Apache 2.2. Start off by opening up the httpd.conf file located in the the conf folder of your Apache installation. Somewhere near the bottom add the following lines.</p>
<p><code>#Application Specific Include file<br />
Include conf/extra/httpd-zf.conf</code></p>
<p>This will allow Apache to add addition configuration settings once Apache is restarted and its a great place to isolate application specific Apache settings.</p>
<p>Now, go ahead an create the include file, &#8220;httpd-zf.conf&#8221; inside the APACHE_HOME/conf/extra/ directory and place the ReWrite rules which were originally in your .htaccess file into<br />
it.  Hit save, remove the .htaccess file, and restart Apache.  You should see your Zend Framework application running.</p>
<p><strong>Why do this?</strong><br />
Speed.  Your application must always read the .htaccess file when someone visits the site.  Removing this extra layer and placing it into the Web Server itself will reduce the amount of time a page loads.</p>
<p>Hope that helps someone out there <img src='http://www.armando.ws/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.armando.ws/2009/03/how-to-run-zend-framework-with-no-htaccess-file/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
