I moved my Wordpress blog and am having redirect issues. The blog used to be on http://blog.domain.com. I want it on http://www.domain.com/blog/. So... I moved all the files, and now have confirmed that all my new posts are going in the right place. Problem is, all those backlinks are not redirecting properly. I'm not having any luck teaching myself how to deal with this directly via the Wordpress dashboard, so I am perfectly happy to create a long-winded entry in .htaccess which will list every single post's old location, followed by its new location. This is not hard to do, just some cut and paste work. BUT the changes don't seem to be taking effect. I'm wondering if they have been made in the right place or not. Questions: 1) Would these redirect entries be made in the core site's .htaccess file, or perhaps in the subdomain where the blog used to reside? 2) Do I need to unmap the folder which used to be the subdomain, and/or remove the folder all together? 3) Is there any risk or tradeoff in listing ~100 lines of redirects? Thank you all for your wisdom.
You could use a rewrite rule like the following to do this: RewriteEngine On RewriteRule ^/(.*) http://www.domain.com/blog/$1 [R,L] Code (markup): 1. Add the entries in your .htaccess file (or virtual host section) for http://blog.domain.com 2. You can delete the contents of the folder and just keep .htaccess there 3. It'll put more load on Apache and would be a PITA to maintain. Not recommended. Hope that answers your questions.