Forums

How To Have WWW, rather than no WWW? 301 Redirect Required? (3 posts)

  1. hemustincrease
    Member
    Posted 1 year ago #

    Hi,

    I'm new to WordPress and this issue is really bugging me, excuse the pun!

    My blog seems to have set itself up without the www part in the url. I really want the www part for the homepage and for every page I create on WordPress.

    How can I achieve this in the most SEO friendly way?

    I tried changing my WordPress and site address in the WordPress > Settings page from http://hemustincrease.com to http://www.hemustincrease.com . When I did this I was locked out of my admin panel. I then had to go through the phpMyAdmin method to manually change the urls back and then it would let me log back in to my admin panel.

    I again tried changing the address, but this time I think I just changed the WordPress address. When I clicked save, I again was locked out of my admin panel.

    In addition to being locked out http://www.hemustincrease.com also still didn't work.

    I've therefore gone through the phpMyAdmin method again to regain access to my admin panel.

    What now? How can I acheive this seemingly simple change?

    Why can't I just change my url in the WordPress > Settings area without being locked out and without the change actually working?

    Could it be an issue with the way my domain is set up at GoDaddy? (I've asked them too). Or is this just a WordPress bug/issue?

    Thanks in advance for your help,

    Phil

  2. dejunky
    Member
    Posted 1 year ago #

    I might be wrong but this has more to do with your .htaccess file rather than WP it's self.

    I use this...

    ################# Force WWW #################
    RewriteEngine On
    RewriteCond %{HTTP_HOST} !^www\.
    RewriteRule (.*) http://www.%{HTTP_HOST}/$1 [R=301,L] ####### last slash

    Does that help?

  3. hemustincrease
    Member
    Posted 1 year ago #

    Thanks dejunky. Just tried that but it didn't work.

    Just heard back from Godaddy support and it looks like it might be an issue with my DNS settings so i'm going to check that out now.

    Thanks for the quick reply btw.

    Phil

Topic Closed

This topic has been closed to new replies.

About this Topic