.htaccess 301 re-direct and canonicalization
- SEO |
I was wondering if anyone could shed some light on an issue i have been trying to get my head around for a while now which is multiple versions of the same website and 301 re-directs. I understand the basic principle but struggle with the details.
So from what i understand, for my site there will be
mysite.co.uk
www.mysite.co.uk
http://mysite.co.uk
I also have an SSL certificate installed on the domain so also
https://www.mysite.co.uk
https://mysite.co.uk
Is there a way to see which versions have been indexed or is it a case of they all will be?
I would prefer to use the domain www.mysite.co.uk so if i redirect all of the others to the www.mysite.co.uk version, will the SSL certificate still work or will i have to set the https version as the preferred domain?
Also, once i have worked out which domain is to be the preferred one, what code do i need to put in the .htaccess file? (i am on a linux server)
I hope that all makes sense and i thank you in advance for any help and advice.
Lee
Grab a LIFETIME Discount off Elegant Themes
Grab a LIFETIME 40% Discount off The Best Spinner