• Resolved Leek

    (@iamleek)


    Apologies for the “Topic Title”. Could’t come up with a better way to put it in words.

    Entering the link below directs you to my website

    http://iamleek.com

    But when you type in http://www.iamleek.com it shows a “Under Construction” page.

    I want it so that people can access my site from both http:// and www.

    Please Help,
    Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator t-p

    (@t-p)

    This is a more generic solution, because it can be used with any domain name without having to specify the specific domain name in each .htaccess:

    # Redirect non-www to www:
    RewriteCond %{HTTP_HOST} !^www\. [NC]
    RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
    Thread Starter Leek

    (@iamleek)

    where to add this? In my cPanel/FileManager?

    OR

    Do I add it in style.css?

    Thread Starter Leek

    (@iamleek)

    I tried adding to .htaccess: now nothing works -__-

    did i do something wrong?

    All i want to happen is when you enter http://www.iamleek.com you’re directed to http://iamleek.com

    🙂 just use simple way. go to admin dashboard and settings/read options. change your url there. remove ‘wwww’. type there example: http://example.com
    I used this method a year ago 🙂

    Sorry Admin Dashboard/settings/general

    and change wordpress address(URL).

    Thread Starter Leek

    (@iamleek)

    When I do this method, I get this message…

    “Sorry!

    You do not have permission to access this location.”

    And now I can no longer access my Dashboard.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘how to redirect non www to www’ is closed to new replies.