1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Two versions of wesite

Discussion in 'Search Engine Optimization' started by E01, Apr 6, 2014.

  1. #1
    Hi..
    I've two versions of my website..i.e It open with www & without www similarly. I want to keep only one version. How Is It possible?
     
    E01, Apr 6, 2014 IP
  2. ramosthemes

    ramosthemes Greenhorn

    Messages:
    10
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    23
    #2
    Add this to your htaccess. It will redirect non www to www:

    
    RewriteEngine On
    RewriteCond %{HTTP_HOST} !^www\.
    RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
    
    Code (markup):
     
    ramosthemes, Apr 6, 2014 IP
    dedideals and samborfc1 like this.
  3. vicky1101

    vicky1101 Active Member

    Messages:
    41
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    63
    #3
    great suggestion mate , after doing this how to check that task is done successfully or not ?
    hope to have a good suggestion ..
     
    vicky1101, Apr 6, 2014 IP
  4. Nigel Lew

    Nigel Lew Notable Member

    Messages:
    4,642
    Likes Received:
    405
    Best Answers:
    21
    Trophy Points:
    295
    #4
    just browse to the non www version and note that it automatically adds www. This is seo 101. Its not that vexing.

    N.
     
    Nigel Lew, Apr 6, 2014 IP
    ryan_uk likes this.
  5. vicky1101

    vicky1101 Active Member

    Messages:
    41
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    63
    #5
    great mate - can we use this wordpress sites ? and is it benificial with wordpress sites especially SEO in point of view ?
     
    vicky1101, Apr 6, 2014 IP
  6. Nigel Lew

    Nigel Lew Notable Member

    Messages:
    4,642
    Likes Received:
    405
    Best Answers:
    21
    Trophy Points:
    295
    #6
    Sure, you can do this wordpress. I can't recall a scenario when I have not done it.

    Nigel
     
    Nigel Lew, Apr 6, 2014 IP
  7. Foxxy

    Foxxy Active Member

    Messages:
    465
    Likes Received:
    46
    Best Answers:
    0
    Trophy Points:
    90
    #7
    If Wordpress is anything like Joomla, you probably have more variations of your content than that. Check to see if there is a WP plugin for canonical urls. That will take care of all of the duplicate content, not just the www issue. This article will better explain what I mean.

    https://support.google.com/webmasters/answer/139066?hl=en
     
    Foxxy, Apr 6, 2014 IP
  8. dedideals

    dedideals Member

    Messages:
    168
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    48
    #8
    This... duplicate content is not good, we did the same rewrite code and it works a treat
     
    dedideals, Apr 6, 2014 IP