I have a website that I am rebranding and using a new domain name for. Right now it is primarily a blog hosted at the root.
I am going to be redirecting from www.old.com
to www.new.com
, and I also want to move my blog to blog.new.com
. Currently www.old.com
doesn't serve any subdomains.
Based on the research I've done, it would seem that I need to use 301 redirects because these should be permanent. I just don't really know what I need to do to setup these redirects. Should I use mod_rewrite
?
My sites are hosted on Dreamhost so any Apache configuration that I would need to do I believe I'd have to do in an .htaccess
file.