I built a dynamic website to replace a website we were paying a provider for. We will continue to own the previous domain but will also be utilizing a new domain. I plan to basically 301 the old domain to the new domain but I have questions..
First of all, the previous site didn't differentiate between www and non www.. so there are pages indexed in google with both URLS.. second there are some particular section index type URLs that I would like to 301 to the URL of same section front in the new site.. but then I would also want to 301 all the other possible requests for the old domain to the home page (or perhaps a better page for usability, TBD)..
I know how to redirect www to non www.. individual pages to other individual pages and entire domains to other domains.. but I am concerned about how exactly the syntax should be done when writing an htaccess that will do all the above at the same time.
Is it correct to just string them all together.. e.g. first redirect www to non www.. then next do the individual page 301s... and then after that in the file redirect the entire domain.. would the entire domain redirect since it's at the bottom page do clean up detail on anything that hadn't already been sent on? Thanks.