Forum Moderators: open
For discussion purposes, let's say the main site them is "widgets" and the sub-site's topic is "broken widgets". So the sub-site will go into a sub-directory off the public root called "broken-widgets", with its own home page and internal linking structure. I will map the sub-domain to this sub-directory.
My concern is that I don't want to split page rank between the two different possible canonicalizations for each page, since they can be referenced either through the sub-domain or via the sub-directory. For example, in the case of the sub-domain public root -> "broken-widgets.widgets.com/" vs "www.widgets.com/broken-widgets"/.
So now the question. I want to create an htaccess file that redirects all page references to one canoncalizated URL form. Which way is the best way to go to get the best possible results with the search engines? Do I force all URL accesses to the sub-directory to the sub-domain? Or do I force all sub-domain accesses to the sub-directory?
Also, if anyone has a good htaccess redirect sample for doing one or the other that would be great.
Cheers.
If ranking is a major concern, a much better approach would be to use www.widgets.com/broken-widgets/ rather than broken-widgets.widgets.com.
However, if you do feel compelled to proceed, don't forget to 301 from www.broken-widgets.widgets.com to broken-widgets.widgets.com - that will at least avoid further dilution.