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

301 redirect problem.

Discussion in 'White Hat SEO' started by alamgir hasan, Oct 22, 2016.

  1. alamgir hasan

    alamgir hasan Newbie

    Joined:
    Jun 13, 2016
    Messages:
    20
    Likes Received:
    0
    Gender:
    Male
    I've tried to 301 redirect my non-www to www by .htaccess file but it failed and my site was down. how can I 301 redirect non-www to www properly . my site is in WP. thanks in advance.
     
  2. salebevana

    salebevana Newbie

    Joined:
    Aug 5, 2014
    Messages:
    12
    Likes Received:
    0
    Gender:
    Male
    Home Page:
    Meybe you can tray with same scripts for redirecting to 301
     
  3. TayaX

    TayaX Jr. VIP Jr. VIP

    Joined:
    Dec 13, 2010
    Messages:
    3,512
    Likes Received:
    1,958
    Occupation:
    Skype : TayaxBHW
    Location:
    France
    Home Page:
    WP is quite simple to handle.

    First, make sure your dns zone for www and non-www point to the same server.
    Then, in wp, you just have to go to the general settings and change your address to non www.

    It will just now reload with the good address.