301 redirect - subdomain to subfolder
I have one of those "special" clients that wants to do onsite SEO in house, which is fine by me normally but I can't figure out how to explain how to fix something rather urgent to their designer. My designer is peeved at them and is not being helpful :rolleyes: so I'm trying to make it work.
Anyways, the client's site has 3 big old subdomains that for SEO purposes must be 301 redirected to subfolders/subdirectories. It's Linux w/Apache and their designer has resorted to arguing with GoDaddy support ( :rolleyes: ) to try to get this done. My (rudimentary) understanding is this:
He needs to create an .htcaccess file in the root domain where the subdomains are. This is the generic set of rules I'd like to propose:
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^subdomain\.domain\.com
RewriteRule ^(.*)$ http://domain.com/subfolder/$1 [R=301]
so that would move subdomain A to subfolder A... yes?
For SEO it's got to be a 301 or I lose link juice. So my questions are:
1) Does this code look right?
2) Do I combine the three sets of rules in one .htcaccess or should there be three?
Please feel free to heckle/educate me because I am the first to admit that I'm stuck on this. We do 301 redirects from non www to www versions of sites all the time but this is just beyond me. Thanking you in advance for any advice!
Robin
HTML/CSS/jQuery/ZURB Foundation/Twitter Bootstrap/Wordpress/Frontend Performance Optimizing
---
Need HTML/CSS help? Skype: microcosmic - Test Your Responsive Design - InternetCookies.eu