I've got a blog running on a sub domain mirrored using this method on to a sub directory, so that the links come to my main domain not the sub domain..
Obviously this creates duplicate content. What I was planning on doing, was to block googlebot from seeing the sub domain using robots.txt and then get it to index the sub directory.
What i would also like to do is insert 301 redirects from each of the pages as well as rel="canonical". But because this is a blog there is always new content being added so I would have to add new pages to the 301 each day and add in new rel="canonical" links into each page.
Is there a way to write with the 301 redirect & rel="canonical" that anything after the slash stays the same but the domain name itself will change?
ie.
blog.mysite.com/post1 - would automaticly be redirected to - mysite.com/blog/post1