Our client would like to use just one domain name for their site to prevent diluting page rank in search engines.
For example, stackoverflow.com is the domain name they always use. If you type in http://www.stackoverflow.com you get redirected to the non-www version, as this is their choice for their domain name.
Where should this be done?
- At the application server level (ex in IIS, set up a site and have it issue a permanent redirect to the proper domain name
- At the application level
I don’t like #1 as it means I have a bunch of extra sites set up just for redirecting. I don’t like #2 as rewrite rules do affect performance.
thanks.
Do it at as low a level as you can possibly do it. Your application shouldn’t know about its root domain name.