<?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>Ken Shafer&#039;s Bloggity-Blog &#187; .htaccess</title>
	<atom:link href="http://shaferdesigns.com/tag/htaccess/feed/" rel="self" type="application/rss+xml" />
	<link>http://shaferdesigns.com</link>
	<description>SEO, Social Media and General Web Designs Stuffs</description>
	<lastBuildDate>Fri, 03 Sep 2010 03:16:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Mod_Rewrite for GoDaddy and WordPress</title>
		<link>http://shaferdesigns.com/coding/mod_rewrite-for-godaddy-and-wordpress/</link>
		<comments>http://shaferdesigns.com/coding/mod_rewrite-for-godaddy-and-wordpress/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 05:10:55 +0000</pubDate>
		<dc:creator>Ken Shafer</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://shaferdesigns.com/?p=77</guid>
		<description><![CDATA[Back in 2008 I posted an article about getting mod_rewrite working on a GoDaddy account. I thought it&#8217;d be a good time to update that information with another example. This time we&#8217;re going to be looking at making some changes on a GoDaddy account with a WordPress installation. &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- Options +FollowSymLinks Options -MultiViews RewriteEngine on [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_84" class="wp-caption alignright" style="width: 235px"><a href="http://shaferdesigns.com/wp-content/uploads/2010/01/IMG_0117.jpg"><img class="size-medium wp-image-84  " title="Maya is Driving" src="http://shaferdesigns.com/wp-content/uploads/2010/01/IMG_0117-225x300.jpg" alt="Maya is Driving" width="225" height="300" /></a><p class="wp-caption-text">I didn&#39;t know what image to use for this post</p></div>
<p>Back in 2008 I posted an article about getting <a href="http://shaferdesigns.com/coding/godaddy-htaccess-mod_rewrite-is-working/">mod_rewrite working on a GoDaddy account</a>. I thought it&#8217;d be a good time to update that information with another example. This time we&#8217;re going to be looking at making some changes on a GoDaddy account with a WordPress installation.</p>
<div id="_mcePaste">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</div>
<div><strong>Options +FollowSymLinks</strong></div>
<div id="_mcePaste"><strong>Options -MultiViews</strong></div>
<div id="_mcePaste"><strong>RewriteEngine on</strong></div>
<div id="_mcePaste"><strong>RewriteRule ^DirectoryName/(.*)/(.*)/(.*) pagename.php?paramB=$2&amp;paramC=$3paramA=$1</strong></div>
<div><strong><br />
</strong></div>
<div id="_mcePaste"># BEGIN WordPress</div>
<div id="_mcePaste">&lt;IfModule mod_rewrite.c&gt;</div>
<div id="_mcePaste">RewriteEngine On</div>
<div id="_mcePaste">RewriteBase /</div>
<div id="_mcePaste">RewriteCond %{REQUEST_FILENAME} !-f</div>
<div id="_mcePaste">RewriteCond %{REQUEST_FILENAME} !-d</div>
<div id="_mcePaste">RewriteRule . /index.php [L]</div>
<div id="_mcePaste">&lt;/IfModule&gt;</div>
<div id="_mcePaste"># END WordPress</div>
<div id="_mcePaste">DirectoryIndex index.php</div>
<p>Options +FollowSymLinksOptions -MultiViewsRewriteEngine onRewriteRule ^attorneys/(.*)/(.*)/(.*) practice.php?geo=$2&amp;pa=$3&amp;state=$1<br />
# BEGIN WordPress&lt;IfModule mod_rewrite.c&gt;RewriteEngine OnRewriteBase /RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule . /index.php [L]&lt;/IfModule&gt;<br />
# END WordPress<br />
DirectoryIndex index.php</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>This implementation takes this: &#8220;domain.com/pagename.php?paramB=Y&amp;paramC=ZparamA=X&#8221;<br />
and turns it into &#8220;domain.com/DirectoryName/X/Y/Z &#8221;</p>
<p>I like this set up since it fits in with my normal WordPress url structure. Just make sure that you pick a directory name that isn&#8217;t going to be used within WordPress.</p>
<p>Also, notice that the custom rules are inserted before the usual WordPress rules. This was the only way I was able to get it to work.</p>
<p>Hope this helps! Just let me know if you have any questions at all.</p>
]]></content:encoded>
			<wfw:commentRss>http://shaferdesigns.com/coding/mod_rewrite-for-godaddy-and-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GoDaddy .htaccess mod_rewrite is working!!!</title>
		<link>http://shaferdesigns.com/coding/godaddy-htaccess-mod_rewrite-is-working/</link>
		<comments>http://shaferdesigns.com/coding/godaddy-htaccess-mod_rewrite-is-working/#comments</comments>
		<pubDate>Fri, 29 Feb 2008 04:58:08 +0000</pubDate>
		<dc:creator>Ken Shafer</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[goddady]]></category>
		<category><![CDATA[mod_rewrite]]></category>

		<guid isPermaLink="false">http://shaferdesigns.com/?p=79</guid>
		<description><![CDATA[Ok, so I know this is a little out of the blue but a recently acquired SEO client is using GoDaddy for their hosting. Their domain name is something to the effect of www.chicago(businesstype).com. I&#8217;ve only been optimizing the site for a couple of weeks and we&#8217;re already doing well for keyword phrases using &#8220;chicago.&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>Ok, so I know this is a little out of the blue but a recently acquired SEO client is using GoDaddy for their hosting. Their domain name is something to the effect of www.chicago(businesstype).com. I&#8217;ve only been optimizing the site for a couple of weeks and we&#8217;re already doing well for keyword phrases using &#8220;chicago.&#8221;</p>
<p>However, the client wants to attack markets in the surrounding suburbs so I needed to come up with a quick way to create &#8220;city pages&#8221; for each new market. I did this by using www.domain.com/cityPage.php?city=name. Easy enough&#8230;but i needed something friendlier for Google. Enter mod_rewrite for GoDaddy.</p>
<p>I searched around online until I found this combination which works for me.<br />
<strong>Original URL</strong>: www.domain.com/cityPage.php?city=name (meh)<br />
<strong>New URL:</strong> www.domain.com/name (wonderful!)</p>
<p>Here&#8217;s the magic code!<br />
<strong>Options FollowSymLinks</strong><br />
<strong>Options -MultiViews</strong><br />
<strong>RewriteEngine on</strong><br />
<strong>RewriteRule ^([^/.]+)/?$ /cityPage.php?city=$1 [L]</p>
<p></strong>You can see this code working at the <a href="http://www.chicagotitleloans.com/" target="_blank">Chicago Title Loans</a> site (<a href="http://www.chicagotitleloans.com/" target="_blank">www.chicagotitleloans.com</a>)<strong><br />
</strong><br />
Enjoy!</p>
<p>thx to the following sites for your help!<br />
<span style="font-size: xx-small;"><a href="http://gidden.net/tom/2006/05/26/4/">http://gidden.net/tom/2006/05/26/4/</a><br />
<a href="http://surf11.com/entry/153/godaddy-hosting-mod-rewrite-with-htacces">http://surf11.com/entry/153/godaddy-hosting-mod-rewrite-with-htacces</a><br />
<a href="http://www.btjones.com/2007/12/09/godaddy-mod_rewrite-problem-fix/">http://www.btjones.com/2007/12/09/godaddy-mod_rewrite-problem-fix/</a><br />
<a href="http://www.webmasterworld.com/apache/3380566.htm">http://www.webmasterworld.com/apache/3380566.htm</a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://shaferdesigns.com/coding/godaddy-htaccess-mod_rewrite-is-working/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
