<?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>garinungkadol &#187; mod_rewrite</title>
	<atom:link href="http://garinungkadol.com/tag/mod_rewrite/feed/" rel="self" type="application/rss+xml" />
	<link>http://garinungkadol.com</link>
	<description>all about the noise</description>
	<lastBuildDate>Wed, 27 Jul 2011 08:48:06 +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>XAMPP + Pretty Permalinks in WordPress</title>
		<link>http://garinungkadol.com/2009/xampp-pretty-permalinks-wordpress/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=xampp-pretty-permalinks-wordpress</link>
		<comments>http://garinungkadol.com/2009/xampp-pretty-permalinks-wordpress/#comments</comments>
		<pubDate>Sat, 20 Jun 2009 09:16:46 +0000</pubDate>
		<dc:creator>vix</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[permalinks]]></category>
		<category><![CDATA[virtual host]]></category>
		<category><![CDATA[windows xp]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[xampp]]></category>

		<guid isPermaLink="false">http://garinungkadol.com/?p=9</guid>
		<description><![CDATA[If you using XAMPP as a local web server for testing out themes and plugins then you might find this useful if you want to enable pretty permalinks for WordPress. *Note: I have xampp installed on a Windows XP setup. &#8230; <a href="http://garinungkadol.com/2009/xampp-pretty-permalinks-wordpress/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you using <a href="http://www.apachefriends.org/">XAMPP</a> as a local web server for testing out themes and plugins then you might find this useful if you want to enable pretty permalinks for WordPress. *Note: I have xampp installed on a Windows XP setup.</p>
<h2>Turn on Mod Rewrite</h2>
<p>In order for WordPress to manipulate URLs, <b>Mod Rewrite</b> must be turn on. To load the module open up Apache&#8217;s main configuration file: <b>httpd.conf</b>.<br />
It is usually found in <b>c:\xampp\apache\conf\</b>.<br />
Look for the following line and remove the &#8220;#&#8221; at the beginning of the line.</p>
<pre><code>	#LoadModule rewrite_module modules/mod_rewrite.so	</code></pre>
<h2>Set up the Virtual Host directives</h2>
<p>Now it&#8217;s time to create your site on your local machine because let&#8217;s face it, it&#8217;s nicer to look at http://garinungkadoldev.com than http://localhost/gkl_280 <img src='http://garinungkadol.com/manage/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
The VirtualHost config file, <b>httpd-vhosts.conf</b> is usually located at <b>c:\xampp\apache\conf\extra</b></p>
<pre><code>
	NameVirtualHost garinungkadoldev.com
	&lt;VirtualHost garinungkadoldev.com&gt;
	     DocumentRoot c:\xampp\htdocs\gkl_280
  	&lt;/VirtualHost&gt;
</code></pre>
<p>So what does this all mean?</p>
<p><i>NameVirtualHost</i> &#8211; tells the Apache HTTP Server which domain name (garinungkadoldev.com) to use.</p>
<p><i>&lt;VirtualHost&gt;</i> &#8211; container where directives intended for garinungkadoldev.com are placed.</p>
<p><i>DocumentRoot</i> &#8211; absolute path to where web files are located. In this example my WordPress installation is inside c:\xampp\htdocs\gkl_280</p>
<p>Save your files and restart XAMPP!</p>
<h2>Map the IP address to your domain</h2>
<p>Before enabling permalinks in WordPress you need to tell Windows to recognize your domain name as belonging to localhost.<br />
In Windows XP the HOSTS file is found at <b>C:\WINDOWS\system32\drivers\etc\</b>. Open the &#8220;host&#8221; file inside a text editor and add this:</p>
<pre><code>127.0.0.1	garinungkadoldev.com</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://garinungkadol.com/2009/xampp-pretty-permalinks-wordpress/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

