how to fix this.. ?!

Discussion in 'Search Engine Optimization' started by e-controler, Sep 20, 2008.

  1. #1
    Its about my web site address. It could be opened with and without www. in front..

    how to fix it, because this way I copy my content myself.. a html code or ?
     
    e-controler, Sep 20, 2008 IP
  2. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #2
    did u change nameservers recently ?
     
    Bohra, Sep 20, 2008 IP
  3. proxywhereabouts

    proxywhereabouts Notable Member

    Messages:
    4,027
    Likes Received:
    110
    Best Answers:
    0
    Trophy Points:
    200
    #3
    what is the url so that we can look at the problem
     
    proxywhereabouts, Sep 20, 2008 IP
  4. kder86

    kder86 Peon

    Messages:
    291
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You can use a 301 redirect and redirect the non www. address to the www. address

    There are a few ways to do it. I personally edit the .htacess file for the site.

    Just use this code

    RewriteEngine on 
    RewriteCond %{HTTP_HOST} ^yourwebsite\.com 
    RewriteRule ^(.*)$ http://www.yourwebsite.com/$1 [R=301,L]
    
    Code (markup):
     
    kder86, Sep 20, 2008 IP
  5. nabeelkhan

    nabeelkhan Well-Known Member

    Messages:
    384
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    103
    #5
    This seems a proper solution for this issue
     
    nabeelkhan, Sep 20, 2008 IP
  6. e-controler

    e-controler Peon

    Messages:
    46
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    really BIG thanks guys !!
     
    e-controler, Sep 20, 2008 IP
  7. e-controler

    e-controler Peon

    Messages:
    46
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    one more quest.. where is this .htacess file ..
    I use godaddy
     
    e-controler, Sep 20, 2008 IP
  8. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #8
    its there in the root if its not there create it
     
    Bohra, Sep 20, 2008 IP
  9. Drabdcesign

    Drabdcesign Peon

    Messages:
    158
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    In the root folder, if not there create a txt file on your computer and call it htaccess.txt then upload to the same the folder where your index file is and then rename it from htaccess.txt to .htaccess
     
    Drabdcesign, Sep 20, 2008 IP