<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: Redirect question, with a sweet twist.</title>
	<link>http://ask.metafilter.com/115762/Redirect-question-with-a-sweet-twist/</link>
	<description>Comments on Ask MetaFilter post Redirect question, with a sweet twist.</description>
	<pubDate>Tue, 03 Mar 2009 22:18:33 -0800</pubDate>
	<lastBuildDate>Tue, 03 Mar 2009 22:18:33 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: Redirect question, with a sweet twist.</title>
		<link>http://ask.metafilter.com/115762/Redirect-question-with-a-sweet-twist</link>	
		<description>I&apos;m moving Wordpress from www.mydomain.com to www.mydomain.com/blog, but I&apos;m also putting in something new at root that I want people to see. Please .htaccess my brains out. &lt;br /&gt;&lt;br /&gt; I would like to move my Wordpress installation from www.mydomain.com to www.mydomain.com/blog, so I can put a sweet &lt;a href=&quot;http://sweetcron.com/&quot;&gt;Sweetcron&lt;/a&gt; installation at root. After I move Wordpress, I want to make sure that all my pages map to their new URLS. For example, http://www.mydomain.com/2009/03/03/sample-post/ needs to go to http://www.mydomain.com&lt;strong&gt;/blog&lt;/strong&gt;/2009/03/03/sample-post/ &lt;br&gt;
&lt;br&gt;
But! Since I&apos;ll have a new page at root, I do not want www.mydomain.com to redirect to www.mydomain.com/blog. I want people who land at www.mydomain.com/index.php to stay right where they are. I&apos;ve tried tutorials, video tutorials, and htaccess generators, but nothing seems to work. &lt;a href=&quot;http://ask.metafilter.com/107977/What-are-best-practices-for-changing-the-directory-of-a-Wordpress-blog&quot;&gt;This&lt;/a&gt; question doesn&apos;t cover it either. I know there&apos;s a combination of rules out there for me. Thanks in advance.</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2009:site.115762</guid>
		<pubDate>Tue, 03 Mar 2009 22:13:06 -0800</pubDate>
		<dc:creator>miniminimarket</dc:creator>
		
			<category>wordpress</category>
		
			<category>htaccess</category>
		
			<category>redirect</category>
		
			<category>resolved</category>
		
	</item> <item>
		<title>By: soma lkzx</title>
		<link>http://ask.metafilter.com/115762/Redirect-question-with-a-sweet-twist#1660690</link>	
		<description>RewriteEngine on &lt;br&gt;
RewriteRule ^200(.*)$ /blog/200$1 [r=301,nc]&lt;br&gt;
&lt;br&gt;
to the rescue!</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2009:site.115762-1660690</guid>
		<pubDate>Tue, 03 Mar 2009 22:18:33 -0800</pubDate>
		<dc:creator>soma lkzx</dc:creator>
	</item><item>
		<title>By: soma lkzx</title>
		<link>http://ask.metafilter.com/115762/Redirect-question-with-a-sweet-twist#1660693</link>	
		<description>or RewriteRule ^20(.*)$ /blog/20$1 [r=301,nc] if you&apos;re still going to be blogging in the incredible future that is 2010.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2009:site.115762-1660693</guid>
		<pubDate>Tue, 03 Mar 2009 22:19:47 -0800</pubDate>
		<dc:creator>soma lkzx</dc:creator>
	</item><item>
		<title>By: hattifattener</title>
		<link>http://ask.metafilter.com/115762/Redirect-question-with-a-sweet-twist#1660694</link>	
		<description>Your redirects need to guess whether a given request is for wp or for something else, right? I&apos;d use a RedirectMatch (or a mod_rewrite rule) and redirect all urls that look wordpress-y (say, which start with four digits&#8212; I&apos;m not sure what other urls wp might want to serve up. You could grep your access logs to see, I guess.) You need to leave alone any urls that sweetcron should respond to, of course.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2009:site.115762-1660694</guid>
		<pubDate>Tue, 03 Mar 2009 22:20:19 -0800</pubDate>
		<dc:creator>hattifattener</dc:creator>
	</item><item>
		<title>By: miniminimarket</title>
		<link>http://ask.metafilter.com/115762/Redirect-question-with-a-sweet-twist#1660700</link>	
		<description>Cool, soma lkzx -- so that would take care of all my 200- posts? I do have some pages on my www.mydomain.com Wordpress install, like www.mydomain.com/about-me/ but those aren&apos;t that important. I&apos;m still not entirely sure about rewrite vs redirect, but I think rewrite is the better choice, Google/SEO-wise..? Thanks again.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2009:site.115762-1660700</guid>
		<pubDate>Tue, 03 Mar 2009 22:30:37 -0800</pubDate>
		<dc:creator>miniminimarket</dc:creator>
	</item><item>
		<title>By: soma lkzx</title>
		<link>http://ask.metafilter.com/115762/Redirect-question-with-a-sweet-twist#1660711</link>	
		<description>For the rest you can do something like&lt;br&gt;
&lt;br&gt;
Redirect 301 /about-me/ http://www.mydomain.com/blog/about-me/&lt;br&gt;
&lt;br&gt;
on a per-page basis. As for the difference, RewriteRules are dynamic and magic redirects, while &apos;Redirect&apos; is just &quot;here&apos;s one page, here&apos;s the new page&quot;. Don&apos;t worry, though, the r=301 in the RewriteRule is sending a 301 redirect to Google, so your SEO is just fine.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2009:site.115762-1660711</guid>
		<pubDate>Tue, 03 Mar 2009 22:35:13 -0800</pubDate>
		<dc:creator>soma lkzx</dc:creator>
	</item><item>
		<title>By: hattifattener</title>
		<link>http://ask.metafilter.com/115762/Redirect-question-with-a-sweet-twist#1660753</link>	
		<description>Rewrite will make the blog pages appear at the old URL (it&apos;s &quot;rewriting&quot; the incoming request before Apache decides how to deal with it); redirect will mean that browsers visiting the old URL will get redirected to the new URL.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2009:site.115762-1660753</guid>
		<pubDate>Tue, 03 Mar 2009 23:29:29 -0800</pubDate>
		<dc:creator>hattifattener</dc:creator>
	</item><item>
		<title>By: beerbajay</title>
		<link>http://ask.metafilter.com/115762/Redirect-question-with-a-sweet-twist#1660828</link>	
		<description>hattifattner: actually, no. the &quot;r&quot; in &quot;[r=301,nc]&quot; means &quot;redirect&quot;. The 301 means &quot;moved permanently&quot; and the &quot;nc&quot; means &quot;no case&quot; ie. be case insensitive. The end result of soma&apos;s directive is a &lt;i&gt;redirect&lt;/i&gt;.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2009:site.115762-1660828</guid>
		<pubDate>Wed, 04 Mar 2009 03:12:19 -0800</pubDate>
		<dc:creator>beerbajay</dc:creator>
	</item><item>
		<title>By: miniminimarket</title>
		<link>http://ask.metafilter.com/115762/Redirect-question-with-a-sweet-twist#1661085</link>	
		<description>soma lkzx: This totally worked. For anyone else moving their Wordpress installation, don&apos;t forget that you might also have to move tags and categories over, but that&apos;s much simpler:&lt;br&gt;
&lt;br&gt;
redirect 301 /tag http://mydomain.com/blog/tag &lt;br&gt;
&lt;br&gt;
etc etc. &lt;br&gt;
&lt;br&gt;
Now I just need to regenerate a new Google sitemap and change my Feedburner feed. Hopefully that handles everything I needed for the transition.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2009:site.115762-1661085</guid>
		<pubDate>Wed, 04 Mar 2009 08:35:16 -0800</pubDate>
		<dc:creator>miniminimarket</dc:creator>
	</item><item>
		<title>By: hattifattener</title>
		<link>http://ask.metafilter.com/115762/Redirect-question-with-a-sweet-twist#1662293</link>	
		<description>beerbajay: Ah, you&apos;re right, of course. I usually use mod_rewrite to rewrite without emitting a redirect.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2009:site.115762-1662293</guid>
		<pubDate>Wed, 04 Mar 2009 23:15:15 -0800</pubDate>
		<dc:creator>hattifattener</dc:creator>
	</item>
	</channel>
</rss>
