GPLHost Dedicated and xen servers
GPLHost:>_ Dedicated, shared, Xen virtual private servers, managed and domain name hosting woldwide with open source control panel here
Domain Technologie Control Forum Forum Index Domain Technologie Control Forum
Take the control of your domain name


Rewriting of URLs to www subdomain with 301 redirect

 
Post new topic   Reply to topic    Domain Technologie Control Forum Forum Index -> Feature requests
View previous topic :: View next topic  
qp



Joined: 08 Sep 2009
Posts: 24

 PostPosted: Sun Feb 07, 2010 9:09 pm    Post subject: Rewriting of URLs to www subdomain with 301 redirect Reply with quote Back to top

I think for SEO reasons or just neatness, it is good to have different ServerAlias domains to 301 redirect to a canonical domain e.g. one with a www. prefix. Something like this:

RewriteEngine On
RewriteCond %{HTTP_HOST} !www.mydomain.com$
RewriteRule (.*) http://www.mydomain.com/$1 [R=301,L]

So if someone enters http://mydomain.com/ in the browser, not only will it go to the website, but also the URL gets rewritten as http://www.mydomain.com/

And search engines know to combine links for both URLs into one record so you get one PageRank for both rather than one each.

I might have missed it, but maybe DTC could do this, either by default with an option to disable, or as a non-default option. I think there is a slight overhead, but not much.
 
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Domain Technologie Control Forum Forum Index -> Feature requests All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Powered by phpBB© 2001-2005 phpBB Group
- Web hosting - Xen VPS hosting
- Seek