Viewing 9 replies - 1 through 9 (of 9 total)
  • Some setting on your server may be removing the “www” by default – check your .htaccess file or hosting control panel, or contact your host for assistance.

    You should also double-check the “Site address (URL)” in General Settings in your WordPress admin panel and make sure the “www” is there.

    Thread Starter graffics

    (@graffics)

    I have setup a www to non www redirect in my .htaccess file, should this take care of it?

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]

    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]

    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ – [L]
    RewriteRule ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L]
    RewriteRule ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]

    RewriteEngine On
    RewriteCond % ^www.greenbookpages.com [NC]
    RewriteRule ^(.*)$ https://greenbookpages.com/$1 [L,R=301]

    Thread Starter graffics

    (@graffics)

    Also I cannot find the site address anywhere in my WordPress multisite install?

    Can you give me some direction?

    These lines are what is redirecting your www URL to the non-URL form. If you want to stop that from happening, then remove these lines:

    RewriteEngine On
    RewriteCond % ^www.greenbookpages.com [NC]
    RewriteRule ^(.*)$ https://greenbookpages.com/$1 [L,R=301]

    You can also reverse it to force the non-www to redirect to the www version. It depends what you’re trying to accomplish.

    RewriteEngine On
    RewriteCond % ^greenbookpages.com [NC]
    RewriteRule ^(.*)$ https://www.greenbookpages.com/$1 [L,R=301]

    Also I cannot find the site address anywhere in my WordPress multisite install?

    Ah, you did not mention this was a Multisite install.

    In standalone installs, go to Settings > General and you’ll see it there. Not sure if this differs in Multisite.

    Thread Starter graffics

    (@graffics)

    Okay well I used an SEO redirect checker from internetofficer.com and it says https://www.greenbookpages.com is permanently redirected to greenbookpages.com and that is what I wanted to accomplish.

    So I think I’m good

    Right?

    Well, your first post seemed to say you wanted to get the “www” back in the URL, so I guess I’m confused. ??

    When i navigate to my website using https://www.greenbookpages.com it changes to greenbookpages.com (without the www) this is causing a problem with google crawling my website.

    Why does my website do this and how can I change it back to https://www.greenbookpages.com

    If you wanted to remove the “www” from the URL it’s set up that way currently in your .htaccess file but your first post says that was causing problems with Google spidering and you were trying to get the “www” back in the URL, so those are the instructions I gave you.

    Thread Starter graffics

    (@graffics)

    Yes you are correct and sorry for the change in topic, after I added to domain greenbookpages.com (without the www) to my webmaster tools. I realized that google is crawling my site and I didn’t want to confuse google by changing host zone files so my website would have www as a prefix.

    So I decided for SEO reasons to stick with no www and setup the re-direct.

    Do you think that was the smart decision?

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Why does my domain not have www?’ is closed to new replies.