WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] 'www' getting dropped from address in browser (5 posts)

  1. ljkerley
    Member
    Posted 4 years ago #

    I registered my domain as http://www.<domain name>.com. I hosted my domain on GoDaddy. If I input my website into the IE browser address as above, the browser finds the site. However, the address field no longer echos back the 'www' part of the address. It just says <domain>.com. This gives the impression my site is not a 'real' website.

    I contacted GoDaddy support and they said it was WordPress that was dropping the 'www'. I need a way to fix this .

    Any suggestions would be appreciated.

  2. successwindows
    Member
    Posted 4 years ago #

    I know this one. You have to go into your site wordpress admin settings and change the blog url address to include the full qualified address.

    Settings > General Tab

  3. Rev. Voodoo
    Volunteer Moderator
    Posted 4 years ago #

    can you get to your website with and without www?

    If you can, and you just want the browser bar to always show the www regardless of what was typed...

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

    in your .htaccess should work

  4. S.K
    Member
    Posted 4 years ago #

    1. You do not register "www.domain-name.com" you only register "domain-name.com". The prefix "www" is a fancy sub-domain.

    2. Almost all web hosts set it up in such a way that your domain gets accessed with or without the www prefix.

    3. WordPress does 301 (permanent) redirect to either based on the domain you've set as your "Blog URL" in Settings → General.

    This helps in the site not losing its Google search rankings with or without www.

    S.K

  5. ljkerley
    Member
    Posted 4 years ago #

    Thanks to all who replied. It was the setting under Admin. I had assumed that the 'www' would automatically be added to the front of the domain. So I see that I assumed wrong.

Topic Closed

This topic has been closed to new replies.

About this Topic