How to redirect www domain to non www domain?

Discussion in 'Website Development & Design' started by alishroy, Aug 28, 2014.

  1. alishroy

    alishroy
    uix_expand uix_collapse
    New Member

    Joined:
    Aug 19, 2014
    Messages:
    15
    Likes Received:
    0
    Hello forum members
    I have a website and i want our visitor directly redirect to www domain to non-www domain, how can do this. I will appreciate your suggestion.
    Thanks
     
  2. datoneer

    datoneer
    uix_expand uix_collapse
    New Member

    Joined:
    Jul 29, 2012
    Messages:
    53
    Likes Received:
    4
    Open your .htaccess file and add these lines:

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

    Just replace example.com with your website url
     
  3. PromoCodeBuzz

    PromoCodeBuzz
    uix_expand uix_collapse
    Member

    Joined:
    Aug 11, 2014
    Messages:
    42
    Likes Received:
    2
    You can also use plugin in wordpress for redirect old domain to new one!
     
  4. alishroy

    alishroy
    uix_expand uix_collapse
    New Member

    Joined:
    Aug 19, 2014
    Messages:
    15
    Likes Received:
    0
    Thanks datoneer

    It really working for me. Thanks


     
  5. Avni Shergill

    Avni Shergill
    uix_expand uix_collapse
    Member

    Joined:
    Jul 3, 2014
    Messages:
    100
    Likes Received:
    5
    In Google webmaster tool, you can select the option to show your site with www or without www. Change your webmaster setting.
     
  6. akashram

    akashram
    uix_expand uix_collapse
    New Member

    Joined:
    Feb 28, 2014
    Messages:
    17
    Likes Received:
    0
  7. AlphaSirius

    AlphaSirius
    uix_expand uix_collapse
    New Member

    Joined:
    Jun 10, 2014
    Messages:
    16
    Likes Received:
    0
    Hey PromoCodeBuzz, could you please explain the steps of redirecting old domain to new one in wordpress
     
  8. ummi123

    ummi123
    uix_expand uix_collapse
    New Member

    Joined:
    Oct 13, 2014
    Messages:
    1
    Likes Received:
    0
    good job dude i agree with you and I saw you also use same kind of animation info graphic for your Social signals info graphic. Thanks for sharing latest tech.keep it up



    ________________
    Jobs
     

Share This Page