<?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>The SEO Blogger&#187; .htaccess</title>
	<atom:link href="http://theseoblogger.com/tag/htaccess/feed/" rel="self" type="application/rss+xml" />
	<link>http://theseoblogger.com</link>
	<description>^~_ Rising Through the Search Engines _~^</description>
	<lastBuildDate>Mon, 14 Dec 2009 03:20:52 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>WordPress SEO Tutorial: The Best SEO Permalink Structure</title>
		<link>http://theseoblogger.com/seo-blogs/wordpress/wordpress-seo-tutorial-permalink-structure/</link>
		<comments>http://theseoblogger.com/seo-blogs/wordpress/wordpress-seo-tutorial-permalink-structure/#comments</comments>
		<pubDate>Sun, 06 May 2007 02:56:48 +0000</pubDate>
		<dc:creator>SEO Blogger</dc:creator>
				<category><![CDATA[WorPress SEO]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[permalink]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[WorPress-SEO]]></category>

		<guid isPermaLink="false">http://theseoblogger.com/seo-blogs/wordpress/wordpress-seo-tutorial-permalink-structure/</guid>
		<description><![CDATA[How to Use Permalinks to Enhance Your WordPress SEO Blog
This is the first of the WordPress SEO Tutorials series. 
By default, WordPress gives you this dynamic URL for your post: &#8220;http://yourdomain.com/?p=SOME-ID-NUMBER&#8221;. The best SEO permalink structure is to have your post appears with &#8216;category&#8217; and the &#8216;post title&#8217; in the URL. 
This looks something like [...]]]></description>
			<content:encoded><![CDATA[<p align="center"><strong>How to Use Permalinks to Enhance Your WordPress SEO Blog</strong></p>
<p>This is the first of the <a href="http://theseoblogger.com/seo-blogs/wordpress/wordpress-seo-tutorials/">WordPress SEO Tutorials</a> series. </p>
<p>By default, WordPress gives you this dynamic URL for your post: &#8220;http://yourdomain.com/?p=SOME-ID-NUMBER&#8221;. The best SEO permalink structure is to have your post appears with &#8216;category&#8217; and the &#8216;post title&#8217; in the URL. </p>
<p>This looks something like this: &#8220;http://yourdomain.com/category/post-title&#8221;</p>
<p><strong>Why is this the best SEO permalink structure compares to the other structures?</strong><span id="more-18"></span></p>
<p>To simply put, this permalink structure allows you to have &#8216;more&#8217; keyword loaded into the URL of your post. Since the category that you&#8217;ve placed your post under usually related to the post title (which hopefully is keyword-loaded itself), you will have the extra SEO benefit <em>if other people use that permalink structure to link your post</em>.</p>
<p><strong> How to Change the Default Permalinks to &#8216;Category/Post-Title&#8217; Permalinks</strong></p>
<p>In order to change the default permalink structure, you need to go to &#8220;OPTIONS -> Permalinks&#8221; in your admin panel and paste this code into the BOX after &#8220;Custom Structure:&#8221;</p>
<p><strong>/%category%/%postname%/</strong></p>
<p>Next, click the &#8220;Update Permalink Structure >>&#8221; button; if WordPress does NOT automatically update the permalink structure to for you&#8211;don&#8217;t worry&#8211;just do the following:</p>
<p>-If you don&#8217;t have a <em>.htaccess</em> file in your root directory (public_html/.htaccess) already, just &#8216;create a new file&#8217; and name it <em>.htaccess</em> and place it in &#8220;public_html&#8221; directory <strong>or whatever directory you have your WordPress blog installed</strong> (e.g. public_html/blog/.htaccess, which is equivalent to <a href="http://yourdomain.com/blog/.htaccess" title="http://yourdomain.com/blog/.htaccess" class="autohyperlink" target="_blank">yourdomain.com/blog/.htaccess</a>). </p>
<p>-Then, copy and paste the code WordPress gives you after clicking on the &#8220;Update Permalink Structure >>&#8221; button into your <em>.htaccess</em> file. *Note: You need to click on the some option (e.g. &#8216;Edit&#8217;) of your .htaccess file to open up a window to paste your permalink code in the file.</p>
<p>The code is same as following if you are using WordPress 2.0 or higher:</p>
<p><IfModule mod_rewrite.c><br />
RewriteEngine On<br />
RewriteBase /<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteRule . /index.php [L]<br />
</IfModule></p>
<p>Just copy and paste that &#8216;mod-rewrite&#8217; code into your .htaccess file, save it, and you are DONE!</p>
<p>Now, your old AND new post will automatically carry the category the post is assigned to, plus the title name of that post:</p>
<p><strong>http://yourdomain.com/blog/category/post-title</strong></p>
<p>*Note: That&#8217;s the default &#8216;Post-Slug&#8217; structure after the updated permalink, but if you want to change the name of the &#8216;post-title&#8217; in the post&#8217;s URL, just go to &#8216;Post-Slug&#8217; (located on the right-hand side of the &#8220;Write&#8221; page) and input/change to what name you want.</p>
<p>Also, be sure to check out my post on &#8220;<a href="http://theseoblogger.com/seo-blogs/wordpress/wordpress-plugins-to-change-your-permalink-structure/">3 WordPress Plugins to Safely Change Your Permalink Structure</a>&#8221; if you&#8217;re going to change to your blog&#8217;s old permalinks to a new permalink structure.</p>
<p>O.K. Now, that concludes my first WordPress SEO tutorial on permalink structure. If you have any question, just post a comment below&#8230;</p>
Similar Posts:<ul>None Found</ul><!-- POC cache miss: 0.929 ms -->]]></content:encoded>
			<wfw:commentRss>http://theseoblogger.com/seo-blogs/wordpress/wordpress-seo-tutorial-permalink-structure/feed/</wfw:commentRss>
		<slash:comments>175</slash:comments>
		</item>
		<item>
		<title>Using Mod-rewrite to Redirect Non-www URL to www URL</title>
		<link>http://theseoblogger.com/seo-links/seo-url-tip-www-and-non-www/</link>
		<comments>http://theseoblogger.com/seo-links/seo-url-tip-www-and-non-www/#comments</comments>
		<pubDate>Sat, 05 May 2007 00:06:13 +0000</pubDate>
		<dc:creator>SEO Blogger</dc:creator>
				<category><![CDATA[SEO Links]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[linking]]></category>
		<category><![CDATA[mod-rewrite]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[urls]]></category>

		<guid isPermaLink="false">http://theseoblogger.com/seo-links/seo-url-tip-www-httpwww-and-non-www-http-are-different/</guid>
		<description><![CDATA[Did you know the URLs &#8220;www.The SEO Blogger.com&#8221; and &#8220;http://The SEO Blogger.com&#8221; are distinct URLs and are treated differently by the search engines? 
This has to do with URL canonicalization. What&#8217;s URL canonicalization you ask?
According to the head of Google&#8217;s Webspam team, Matt Cutts, URL canonicalization is &#8220;the process of picking the best url when [...]]]></description>
			<content:encoded><![CDATA[<p>Did you know the URLs &#8220;www.The SEO <a href="http://Blogger.com" title="http://Blogger.com" class="autohyperlink" target="_blank">Blogger.com</a>&#8221; and &#8220;http://The SEO <a href="http://Blogger.com" title="http://Blogger.com" class="autohyperlink" target="_blank">Blogger.com</a>&#8221; are distinct URLs and are treated differently by the search engines? </p>
<p>This has to do with URL canonicalization. <strong>What&#8217;s URL canonicalization you ask?</strong><span id="more-16"></span></p>
<p>According to the head of Google&#8217;s Webspam team, <a href="http://www.mattcutts.com/blog/seo-advice-url-canonicalization/">Matt Cutts</a>, URL canonicalization is &#8220;the process of picking the best url when there are several choices&#8221;:</p>
<p>    * www.The SEO <a href="http://Blogger.com" title="http://Blogger.com" class="autohyperlink" target="_blank">Blogger.com</a> (same as <a href="http://www.The" title="http://www.The" class="autohyperlink" target="_blank">www.The</a> SEO <a href="http://Blogger.com" title="http://Blogger.com" class="autohyperlink" target="_blank">Blogger.com</a>)<br />
    * The SEO <a href="http://Blogger.com" title="http://Blogger.com" class="autohyperlink" target="_blank">Blogger.com</a> (same as http://The SEO <a href="http://Blogger.com" title="http://Blogger.com" class="autohyperlink" target="_blank">Blogger.com</a>)<br />
    * www.The SEO <a href="http://Blogger.com/index.php" title="http://Blogger.com/index.php" class="autohyperlink" target="_blank">Blogger.com/index.php</a><br />
    * The SEO <a href="http://Blogger.com/home.asp" title="http://Blogger.com/home.asp" class="autohyperlink" target="_blank">Blogger.com/home.asp</a></p>
<p>Most people think that those are the same, but on technical term, they are NOT! </p>
<p><em>*Can you see how the URLs are different, even though they may serve up the same web page? </em></p>
<p>Luckily, after a major update to &#8220;Big Daddy,&#8221; Google now is able to detect which one is the best URL for you/your website. However, you do have to help Big Daddy in the process. </p>
<p><strong>How do you help make sure Google pick the URL that you want?</strong></p>
<p>Well, for your internal linking, the URL that you use should be &#8216;consistent&#8217;. For example, if I&#8217;m planning to use &#8220;http://The SEO <a href="http://Blogger.com" title="http://Blogger.com" class="autohyperlink" target="_blank">Blogger.com</a>&#8221; as the consistent URL form for all of my EXTERNAL inbound links, it&#8217;s wise to use that URL form in ALL my internal linkings, as well. And, as you can see, I have done just that.</p>
<p>*Note: the reason you don&#8217;t want to have half of your links pointing to &#8220;http://yourdomain.com&#8221; and the other half to &#8220;http://www.yourdomain.com&#8221; is because you do NOT want to split the value of those links up. You want to have one &#8216;consistent&#8217; URL form, so that your website (page rank) will receive the FULL benefits of ALL the links, not just HALF of them.</p>
<p>&#8211;But here&#8217;s the problem, you only have control over the URL form of those external/internal links if you are the one who&#8217;s placing those links (URL form). For many other people who link to your website, you cannot control which URL forms (http://www. or http://) they will link to you. </p>
<p>Thus, in order to receive FULL benefit of consistent URL, you need to set up a 301 permanent redirect from one URL form to another, which is pretty easy&#8211;as shown below:</p>
<p>
<strong>Using Mod Rewrite to Redirect &#8220;Non-www&#8221; URL (<em>http://</em>) to &#8220;www&#8221; URL (<em>http://www.</em>)</strong></p>
<p>In order to do this, you must have access to the <strong>.htaccess </strong> file via FTP or CPanel File Manager. Most Apache web server (Linux hosting) has this .htaccess file. If not, you can create and name the new file <em>.htaccess</em> and place it inside the root directory of your domain (e.g. public_html/.htaccess).</p>
<p>You must edit/add the following mod-rewrite script to your .htaccess file to redirect &#8220;http://&#8221; to &#8220;http://www.&#8221;:</p>
<p>RewriteEngine On<br />
RewriteCond %{HTTP_HOST} !^www..*<br />
RewriteCond %{HTTP_HOST} !^$<br />
RewriteCond %{HTTP_HOST} ^([^.]*).(com|com/)<br />
RewriteRule ^.*$ <a href="http://www.%1.%2%" title="http://www.%1.%2%" class="autohyperlink" target="_blank">www.%1.%2%</a>{REQUEST_URI} [R=301,L]</p>
<p>The above script will redirect:</p>
<p align="center"><em>http://yourdomain.com</em> to <em>http://www.yourdomain.com</em></p>
<p></p>
<p><strong>Redirecting &#8220;www&#8221; URL (<em>http://www.</em>) to &#8220;Non-www&#8221; URL (<em>http://</em>)</strong></p>
<p>This is the simple mod rewrite script I use to redirect &#8220;<em>http://www.The SEO <a href="http://Blogger.com" title="http://Blogger.com" class="autohyperlink" target="_blank">Blogger.com</a></em>&#8221; to &#8220;<em>http://The SEO <a href="http://Blogger.com" title="http://Blogger.com" class="autohyperlink" target="_blank">Blogger.com</a></em>&#8220;:</p>
<p>RewriteEngine On<br />
RewriteCond %{HTTP_HOST} ^www.TheSEOBlogger.com [nc]<br />
RewriteRule (.*) <a href="http://TheSEOBlogger.com/$1" title="http://TheSEOBlogger.com/$1" class="autohyperlink" target="_blank">TheSEOBlogger.com/$1</a> [R=301,L]</p>
<p><strong>*Note: you should change &#8220;The SEO <a href="http://Blogger.com" title="http://Blogger.com" class="autohyperlink" target="_blank">Blogger.com</a>&#8221; to YOUR WEBSITE NAME!</strong> Also, if you have sub-domains, the above script will also work. Also, by &#8216;default&#8217;, I think WordPress gives your site URL as &#8220;http://www.yoursite.com.&#8221; If you want your site to be in &#8220;http://&#8221; URL form, you, of course, have to go to &#8220;OPTION ->General&#8221; and update your site URL to &#8220;http://yoursite.com&#8221; instead of &#8220;http://www.yoursite.com.&#8221;</p>
<p>Anyway, here is a live demo of those two scripts at work:</p>
<p><a href="http://mint-tree.com">http://mint-tree.com</a> >>> <a href="http://www.mint-tree.com" title="http://www.mint-tree.com" class="autohyperlink" target="_blank">www.mint-tree.com</a><br />
<a href="http://www.theseoblogger.com">http://www.TheSEOBlogger.com</a> >>> <a href="http://TheSEOBlogger.com" title="http://TheSEOBlogger.com" class="autohyperlink" target="_blank">TheSEOBlogger.com</a></p>
<p>By using either one of these mod-rewrite scripts, you can have a consistent URL in your linking campaign. Now, you don&#8217;t have to worry what URL form others have used to link to your website. Now &#8220;http://&#8221; and &#8220;http://www.&#8221; are &#8216;consistently&#8217; the same, although I think &#8220;http://&#8221; is a better URL form for your SEO linking campaign, just because that form is SHORTER than &#8220;http://www.&#8221;  <img src='http://theseoblogger.com/wordpress/wp-includes/images/smilies/icon_razz.gif' alt=':razz:' class='wp-smiley' />  .</p>
Similar Posts:<ul>None Found</ul><!-- POC cache miss: 0.442 ms -->]]></content:encoded>
			<wfw:commentRss>http://theseoblogger.com/seo-links/seo-url-tip-www-and-non-www/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>

