Noob Question! Sorry for being a shit, bear with me please!

deeraj005

Junior Member
Joined
Feb 8, 2016
Messages
164
Reaction score
29
Hello,

I have a few questions regarding hosting and SEO.

First, my website is http://mydomain.com
However, if I go to http://www.mydomain.com, if doesn't redirect to my site. I heard that this causes penalty due to duplication. So, how do I redirect people from http://www.mydomain.com to http://mydomain.com?

Second, If I rank #3 for a keyword in google.com, will my rankings be same for google.co.uk or google.co.in? Why/Whynot? If not, how can I rank for different country's google searches?

Thanks a lot!
 
Can you be more specific?
 
1st question - I think you have to edit the htaccess file.
http://www.inmotionhosting.com/support/website/htaccess/force-www-htaccess

2nd question - No it is not. Why ?
short answer - Fuck google. that's why
long answer - That's how it works.. Even amazon.com can't rank #1 in google.co.in and google.co.uk
https://www.google.co.in/?gws_rd=ssl#q=amazon (If you search amazon > google.co.in site it will show amazon.in )
https://www.google.co.uk/?gws_rd=ssl#q=amazon (If you search amazon > google.co.uk site it will show amazon.co.uk )
 
Let me answer for the third one,

how can I rank for different country's google searches?

If you want to target multiple countries, you?ll need to focus on your rankings on several different search engine result pages. You have to focus on both on site & off site factors which helps to rank your website globally.

Best Wishes - BB.
 
Hello,

I have a few questions regarding hosting and SEO.

First, my website is http://mydomain.com
However, if I go to http://www.mydomain.com, if doesn't redirect to my site. I heard that this causes penalty due to duplication. So, how do I redirect people from http://www.mydomain.com to http://mydomain.com?

Second, If I rank #3 for a keyword in google.com, will my rankings be same for google.co.uk or google.co.in? Why/Whynot? If not, how can I rank for different country's google searches?

Thanks a lot!

You need to add this to your .htaccess file.

RewriteCond %{HTTP_HOST} ^\example\.com [NC]
RewriteRule ^(.*)$ http:
//www.example.com/$1 [L,R=301]


Bit of a health warning, I wrote this from memory and I'm a terrible programmer! If it doesn't work I probably slipped a key. Search Google for "www to non www .htaccess" and you'll find a forum thread somewhere with the code without mistakes.

Obviously, you'll want to change example.com for your domain name.

It works by shunting all requests for the non www over to the www version. All traffic affected, including GoogleBot.

If you'd rather your site reside on the non www, simply swap the code back to front.

Hope that helps.
 
Last edited:
Let me answer for the third one,



If you want to target multiple countries, you'll need to focus on your rankings on several different search engine result pages. You have to focus on both on site & off site factors which helps to rank your website globally.

Best Wishes - BB.
Is there any such thread on BHW which gives an overview how to do that?
 
You need to add this to your .htaccess file.

RewriteCond %{HTTP_HOST} ^\example\.com [NC]
RewriteRule ^(.*)$ http:
//www.example.com/$1 [L,R=301]


Bit of a health warning, I wrote this from memory and I'm a terrible programmer! If it doesn't work I probably slipped a key. Search Google for "www to non www .htaccess" and you'll find a forum thread somewhere with the code without mistakes.

Obviously, you'll want to change example.com for your domain name.

It works by shunting all requests for the non www over to the www version. All traffic affected, including GoogleBot.

If you'd rather your site reside on the non www, simply swap the code back to front.

Hope that helps.
Oh thanks, but what if I just redirect from http://www.mysite.com to http://mysite.com via the url redirect option in cpanel? Or is it necessary to edit .htaccess??
 
Back
Top