<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Redirect Dead-End Category, Search and Tag URLs</title>
	<atom:link href="http://digwp.com/2009/06/redirect-category-search-and-tag-urls/feed/" rel="self" type="application/rss+xml" />
	<link>http://digwp.com/2009/06/redirect-category-search-and-tag-urls/</link>
	<description>Take your WordPress skills to the next level.</description>
	<lastBuildDate>Tue, 15 May 2012 08:36:23 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Jeff Starr</title>
		<link>http://digwp.com/2009/06/redirect-category-search-and-tag-urls/#comment-861</link>
		<dc:creator>Jeff Starr</dc:creator>
		<pubDate>Sun, 26 Jul 2009 00:40:26 +0000</pubDate>
		<guid isPermaLink="false">http://modernwordpress.com/?p=40#comment-861</guid>
		<description>Awesome, Danny -- glad to hear you got it sorted :)

Don&#039;t forget to capitalize &quot;&lt;code&gt;Redirect&lt;/code&gt;&quot; to ensure proper syntax and forward compatibility ;)</description>
		<content:encoded><![CDATA[<p>Awesome, Danny &#8212; glad to hear you got it sorted :)</p>
<p>Don&#8217;t forget to capitalize &#8220;<code>Redirect</code>&#8221; to ensure proper syntax and forward compatibility ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danny Ashton</title>
		<link>http://digwp.com/2009/06/redirect-category-search-and-tag-urls/#comment-853</link>
		<dc:creator>Danny Ashton</dc:creator>
		<pubDate>Sat, 25 Jul 2009 13:17:07 +0000</pubDate>
		<guid isPermaLink="false">http://modernwordpress.com/?p=40#comment-853</guid>
		<description>Hi again...

I have think i have found a solution - thanks to your blog post.

I have now added the following:

&lt;code&gt;redirect 301 /category/ http://www.website.com/category/keyword/&lt;/code&gt;
&lt;code&gt;redirect 301 /category/$ http://www.website.com/category/keyword/&lt;/code&gt;

This redirects the specific category page...and also redirects the pages within the directory in the right way.</description>
		<content:encoded><![CDATA[<p>Hi again&#8230;</p>
<p>I have think i have found a solution &#8211; thanks to your blog post.</p>
<p>I have now added the following:</p>
<p><code>redirect 301 /category/ http://www.website.com/category/keyword/</code><br />
<code>redirect 301 /category/$ http://www.website.com/category/keyword/</code></p>
<p>This redirects the specific category page&#8230;and also redirects the pages within the directory in the right way.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danny Ashton</title>
		<link>http://digwp.com/2009/06/redirect-category-search-and-tag-urls/#comment-852</link>
		<dc:creator>Danny Ashton</dc:creator>
		<pubDate>Sat, 25 Jul 2009 12:48:30 +0000</pubDate>
		<guid isPermaLink="false">http://modernwordpress.com/?p=40#comment-852</guid>
		<description>Hi, thanks for your informative article. I have one question that affects my blog.

I want to 301 redirect my old category page: &lt;code&gt;www.website.com/key-word/&lt;/code&gt; to &lt;code&gt;www.website.com/category/key-word&lt;/code&gt;

But i find if i use a 301 redirect rule in my .htaccess it redirects all old pages &lt;code&gt;www.website.com/key-word/specific-page&lt;/code&gt; - which i want to redirect elsewhere.

Is there a way to only redirect the &lt;code&gt;www.website.com/key-word/&lt;/code&gt; and not the &lt;code&gt;www.website.com/key-word/specific-pages&lt;/code&gt;?

Sorry if its not very clear, i am very new to the world of .htaccess.</description>
		<content:encoded><![CDATA[<p>Hi, thanks for your informative article. I have one question that affects my blog.</p>
<p>I want to 301 redirect my old category page: <code>www.website.com/key-word/</code> to <code>www.website.com/category/key-word</code></p>
<p>But i find if i use a 301 redirect rule in my .htaccess it redirects all old pages <code>www.website.com/key-word/specific-page</code> &#8211; which i want to redirect elsewhere.</p>
<p>Is there a way to only redirect the <code>www.website.com/key-word/</code> and not the <code>www.website.com/key-word/specific-pages</code>?</p>
<p>Sorry if its not very clear, i am very new to the world of .htaccess.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Starr</title>
		<link>http://digwp.com/2009/06/redirect-category-search-and-tag-urls/#comment-249</link>
		<dc:creator>Jeff Starr</dc:creator>
		<pubDate>Wed, 24 Jun 2009 14:51:35 +0000</pubDate>
		<guid isPermaLink="false">http://modernwordpress.com/?p=40#comment-249</guid>
		<description>Thanks for the tip, Daniel15 :)</description>
		<content:encoded><![CDATA[<p>Thanks for the tip, Daniel15 :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel15</title>
		<link>http://digwp.com/2009/06/redirect-category-search-and-tag-urls/#comment-246</link>
		<dc:creator>Daniel15</dc:creator>
		<pubDate>Wed, 24 Jun 2009 06:33:14 +0000</pubDate>
		<guid isPermaLink="false">http://modernwordpress.com/?p=40#comment-246</guid>
		<description>Made a mistake in my Lighttpd code, it should be something like:

&lt;code&gt;url.redirect = ( &quot;^/blog/tag/$&quot; =&gt; &quot;http://your-domain.com/&quot;,&lt;/code&gt;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;code&gt;&quot;^/blog/search/$&quot;  =&gt; &quot;http://your-domain.com/&quot;,&lt;/code&gt;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;code&gt;&quot;^/blog/category/$&quot;  =&gt; &quot;http://your-domain.com/&quot;)&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Made a mistake in my Lighttpd code, it should be something like:</p>
<p><code>url.redirect = ( "^/blog/tag/$" =&gt; "http://your-domain.com/",</code><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>"^/blog/search/$"  =&gt; "http://your-domain.com/",</code><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>"^/blog/category/$"  =&gt; "http://your-domain.com/")</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel15</title>
		<link>http://digwp.com/2009/06/redirect-category-search-and-tag-urls/#comment-245</link>
		<dc:creator>Daniel15</dc:creator>
		<pubDate>Wed, 24 Jun 2009 06:32:13 +0000</pubDate>
		<guid isPermaLink="false">http://modernwordpress.com/?p=40#comment-245</guid>
		<description>Just a minor thing, the files are referred to as &quot;.htaccess files&quot; (lowercase with a dot at the front) or &quot;distributed configuration files&quot;, not &quot;HTAccess&quot;. Also, something like this might work for &lt;strong&gt;lighttpd&lt;/strong&gt;:

&lt;code&gt;url.redirect = ( &quot;^/blog/tag/$&quot; =&gt; &quot;http://your-domain.com/&quot;,&lt;/code&gt;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;code&gt;&quot;^/blog/search/$&quot;  =&gt; &quot;http://your-domain.com/&quot;,&lt;/code&gt;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;code&gt;&quot;^/blog/category/$&quot;  =&gt; &quot;http://your-domain.com/&quot;,&lt;/code&gt;
&lt;code&gt;)&lt;/code&gt;

Not tested, though (as I don&#039;t have any live blogs powered by lighttpd right now). You can set &lt;strong&gt;url.redirect-code&lt;/strong&gt; to 301 to make a 301 redirect, or wrap this in a check of &lt;code&gt;$HTTP[&quot;host&quot;]&lt;/code&gt; to make it only apply to your blog vhost. Take a look at the &lt;a href=&quot;http://redmine.lighttpd.net/projects/1/wiki/Docs:ModRedirect&quot; rel=&quot;nofollow&quot;&gt;Lighttpd mod_rewrite docs&lt;/a&gt; for more details.

Great blog you have here! I&#039;ll definitely be subscribing to the RSS feed :D</description>
		<content:encoded><![CDATA[<p>Just a minor thing, the files are referred to as &#8220;.htaccess files&#8221; (lowercase with a dot at the front) or &#8220;distributed configuration files&#8221;, not &#8220;HTAccess&#8221;. Also, something like this might work for <strong>lighttpd</strong>:</p>
<p><code>url.redirect = ( "^/blog/tag/$" =&gt; "http://your-domain.com/",</code><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>"^/blog/search/$"  =&gt; "http://your-domain.com/",</code><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>"^/blog/category/$"  =&gt; "http://your-domain.com/",</code><br />
<code>)</code></p>
<p>Not tested, though (as I don&#8217;t have any live blogs powered by lighttpd right now). You can set <strong>url.redirect-code</strong> to 301 to make a 301 redirect, or wrap this in a check of <code>$HTTP["host"]</code> to make it only apply to your blog vhost. Take a look at the <a href="http://redmine.lighttpd.net/projects/1/wiki/Docs:ModRedirect" rel="nofollow">Lighttpd mod_rewrite docs</a> for more details.</p>
<p>Great blog you have here! I&#8217;ll definitely be subscribing to the RSS feed :D</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Starr</title>
		<link>http://digwp.com/2009/06/redirect-category-search-and-tag-urls/#comment-54</link>
		<dc:creator>Jeff Starr</dc:creator>
		<pubDate>Tue, 16 Jun 2009 17:33:48 +0000</pubDate>
		<guid isPermaLink="false">http://modernwordpress.com/?p=40#comment-54</guid>
		<description>Hi koew, you should be able to use Apache&#039;s &lt;code&gt;RedirectMatch&lt;/code&gt; directive to do this. Try something like this in your site&#039;s web-accessible root .htaccess file:

&lt;code&gt;RedirectMatch ^/blog/(.*)$ http://domain.tld/$1&lt;/code&gt;

..and edit the subdirectory and target URL to suit your needs. Test thoroughly :)</description>
		<content:encoded><![CDATA[<p>Hi koew, you should be able to use Apache&#8217;s <code>RedirectMatch</code> directive to do this. Try something like this in your site&#8217;s web-accessible root .htaccess file:</p>
<p><code>RedirectMatch ^/blog/(.*)$ http://domain.tld/$1</code></p>
<p>..and edit the subdirectory and target URL to suit your needs. Test thoroughly :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: koew</title>
		<link>http://digwp.com/2009/06/redirect-category-search-and-tag-urls/#comment-53</link>
		<dc:creator>koew</dc:creator>
		<pubDate>Tue, 16 Jun 2009 17:22:04 +0000</pubDate>
		<guid isPermaLink="false">http://modernwordpress.com/?p=40#comment-53</guid>
		<description>I&#039;ve got a follow-up question to this post:

Let&#039;s say you&#039;ve used a blog in another folder (for instance /blog/) for a while, then you&#039;d move it up to root-level. 

How can you redirect users who links to old URLs (for instance /blog/post-url), to the new one (root-level/post-url)? Is it possible to do this with .htaccess?</description>
		<content:encoded><![CDATA[<p>I&#8217;ve got a follow-up question to this post:</p>
<p>Let&#8217;s say you&#8217;ve used a blog in another folder (for instance /blog/) for a while, then you&#8217;d move it up to root-level. </p>
<p>How can you redirect users who links to old URLs (for instance /blog/post-url), to the new one (root-level/post-url)? Is it possible to do this with .htaccess?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Starr</title>
		<link>http://digwp.com/2009/06/redirect-category-search-and-tag-urls/#comment-48</link>
		<dc:creator>Jeff Starr</dc:creator>
		<pubDate>Tue, 16 Jun 2009 16:51:02 +0000</pubDate>
		<guid isPermaLink="false">http://modernwordpress.com/?p=40#comment-48</guid>
		<description>Good point - more functionality is definitely possible with a plugin.</description>
		<content:encoded><![CDATA[<p>Good point &#8211; more functionality is definitely possible with a plugin.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Coyier</title>
		<link>http://digwp.com/2009/06/redirect-category-search-and-tag-urls/#comment-46</link>
		<dc:creator>Chris Coyier</dc:creator>
		<pubDate>Tue, 16 Jun 2009 16:43:00 +0000</pubDate>
		<guid isPermaLink="false">http://modernwordpress.com/?p=40#comment-46</guid>
		<description>Yeah handling it with .htaccess is a step up the chain from handling it with PHP so it&#039;s a bit cleaner. 

The concept of redirecting a 404 back to the home with a message is interesting though... I&#039;ve never thought of that. Maybe even parsing the URL for keywords and redirecting to a search page for those keywords?</description>
		<content:encoded><![CDATA[<p>Yeah handling it with .htaccess is a step up the chain from handling it with PHP so it&#8217;s a bit cleaner. </p>
<p>The concept of redirecting a 404 back to the home with a message is interesting though&#8230; I&#8217;ve never thought of that. Maybe even parsing the URL for keywords and redirecting to a search page for those keywords?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

