1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'Black Hat SEO' started by deeraj005, Apr 18, 2016.

  1. deeraj005

    deeraj005 Junior Member

    Joined:
    Feb 8, 2016
    Messages:
    148
    Likes Received:
    22
    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!
     
  2. elhees

    elhees Newbie

    Joined:
    Sep 9, 2015
    Messages:
    20
    Likes Received:
    7
    You can use geolocation in Webmaster tools
     
  3. deeraj005

    deeraj005 Junior Member

    Joined:
    Feb 8, 2016
    Messages:
    148
    Likes Received:
    22
    Can you be more specific?
     
  4. javabro

    javabro Power Member

    Joined:
    Dec 2, 2015
    Messages:
    632
    Likes Received:
    674
    Gender:
    Male
    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 )
     
    • Thanks Thanks x 2
  5. deeraj005

    deeraj005 Junior Member

    Joined:
    Feb 8, 2016
    Messages:
    148
    Likes Received:
    22
    Thanks! Got it!
     
  6. javabro

    javabro Power Member

    Joined:
    Dec 2, 2015
    Messages:
    632
    Likes Received:
    674
    Gender:
    Male
    Welcome. You better search google your question before you create a thread next time.
    Good luck
     
  7. bigbrothers

    bigbrothers Regular Member

    Joined:
    Jul 15, 2014
    Messages:
    391
    Likes Received:
    80
    Gender:
    Male
    Occupation:
    Seo Company
    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.
     
  8. CallmeReaz

    CallmeReaz Junior Member

    Joined:
    Mar 18, 2014
    Messages:
    193
    Likes Received:
    38
    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: Apr 18, 2016
  9. deeraj005

    deeraj005 Junior Member

    Joined:
    Feb 8, 2016
    Messages:
    148
    Likes Received:
    22
    I did search! but no luck...
     
  10. deeraj005

    deeraj005 Junior Member

    Joined:
    Feb 8, 2016
    Messages:
    148
    Likes Received:
    22
    Is there any such thread on BHW which gives an overview how to do that?
     
  11. deeraj005

    deeraj005 Junior Member

    Joined:
    Feb 8, 2016
    Messages:
    148
    Likes Received:
    22
    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??