<?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>Samet Kilictas&#039;s Blog &#187; .htaccess</title>
	<atom:link href="http://samet.kilictas.com/tag/htaccess/feed/" rel="self" type="application/rss+xml" />
	<link>http://samet.kilictas.com</link>
	<description>J2E, PHP, Linux, PL/SQL and other random rants</description>
	<lastBuildDate>Sun, 06 Nov 2011 04:36:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>.htaccess problem at Apache2 (Ubuntu)</title>
		<link>http://samet.kilictas.com/htaccess-problem-at-apache2-ubuntu/</link>
		<comments>http://samet.kilictas.com/htaccess-problem-at-apache2-ubuntu/#comments</comments>
		<pubDate>Mon, 08 Sep 2008 00:07:02 +0000</pubDate>
		<dc:creator>Samet Kilictas</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[apache2]]></category>

		<guid isPermaLink="false">http://samet.kilictas.com/?p=63</guid>
		<description><![CDATA[Hi, Everyone, Today i have faced with a problem which made me sick of apache2. Since i&#8217;ve done with this stupid problem it will be my pleasure to writing solution to my blog page   Ok!, If you are running apache2 first you should know about that you got the configuration file at ; sudo nano [...]]]></description>
			<content:encoded><![CDATA[<p>Hi, Everyone,</p>
<p>Today i have faced with a problem which made me sick of apache2. Since i&#8217;ve done with this stupid problem it will be my pleasure to writing solution to my blog page   <img src='http://samet.kilictas.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Ok!, If you are running apache2 first you should know about that you got the configuration file at ;</p>
<blockquote><p>sudo nano /etc/apache2/apache2.conf -&gt; just check out this file to see what it contains exaclty</p></blockquote>
<p>and you can see error log&#8217;s at ;</p>
<blockquote><p>sudo nano /var/log/apache2/error.log  -&gt; which helps a lot</p></blockquote>
<p>So, to enable .htaccess files on your server first you have to edit ;</p>
<blockquote><p>sudo nano /etc/apache2/sites-available/default</p></blockquote>
<p>when you open this file you have to see some lines like;</p>
<blockquote><p>DocumentRoot <span style="color: #ff9900;">/var/www/</span><br />
&lt;Directory /&gt;<br />
Options FollowSymLinks<br />
AllowOverride All<br />
&lt;/Directory&gt;<br />
&lt;Directory /var/www/&gt;<br />
Options Indexes FollowSymLinks MultiViews<br />
<span style="color: #ff9900;">AllowOverride None</span><br />
Order allow,deny<br />
allow from all<br />
&lt;/Directory&gt;</p></blockquote>
<p>you have to be sure the Document root is correct. Then you need to change the &#8220;<span style="color: #ff9900;">AllowOverride None</span>&#8221; to &#8220;<span style="color: #ff9900;">AllowOverride All</span>&#8221; then we are done with this part.</p>
<p><span id="more-63"></span></p>
<p>And now as step2 to enable .htaccess file your apache2 you should enable rewrite.load mod. If you take a look at /etc/apache2 directory you are going to see that there are some folders like &#8220;mods-available&#8221; and &#8220;mods-enabled&#8221;. mods-available folder contains some mods for apache2 which you may use. mods-enable folder only contains the mods which are enable <img src='http://samet.kilictas.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
This is the tricky point, if you don&#8217;t copy the rewrite.load file from mods-available to mods-enable, your apache2 isn&#8217;t going to load rewrite mod.  Even you are done with /etc/apache2/sites-available/default file since the mod is didnt load so you will get &#8220;<span style="color: #ff0000;">500 Internal Server Error</span>&#8220;.</p>
<p>Samet</p>
<a href='http://twitter.com/share?url=http%3A%2F%2Fsamet.kilictas.com%2F%3Fp%3D63&count=vertical&related=&text=.htaccess%20problem%20at%20Apache2%20%28Ubuntu%29' class='twitter-share-button' data-text='.htaccess problem at Apache2 (Ubuntu)' data-url='http://samet.kilictas.com/?p=63' data-counturl='http://samet.kilictas.com/htaccess-problem-at-apache2-ubuntu/' data-count='vertical' data-via='sametkilictas'>Tweet</a>]]></content:encoded>
			<wfw:commentRss>http://samet.kilictas.com/htaccess-problem-at-apache2-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

