The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Technical SEO Issues
    4. Wordpress & use of 'www' vs not for webmaster tools - explanation needed

    Wordpress & use of 'www' vs not for webmaster tools - explanation needed

    Technical SEO Issues
    5 4 917
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • dnaynay
      dnaynay last edited by

      I am having a hard time understanding the issue of canonization of site pages, specifically in regards to the 'www' or 'non-www' versions of a site. And specifically in regards to wordpress.

      I can see that it doesn't matter whether you type in 'www' or not in the url for a wordpress site, what is going on in the back end that allows this?

      When I link up to google webmaster tools, should i use www or not?

      thanks for any help

      d

      1 Reply Last reply Reply Quote 0
      • jlane9
        jlane9 last edited by

        Hello David,

        When you install wordpress it installs the files which can be found with or without the www.

        On the settings page you can add the www as the version you want to use.

        What is going on in the back that allows this ? => ( .htacess file re-write rules)

        Your host should have rewrite rule available via  .htacess file This will rewite all the pages on the site to which ever version you choose.

        then in your webmaster account choose the www. version as well.

        Redirecting your site to one version or the other is going to reduce two versions of your site down to one version so you do not have duplicate content issues or penalties.

        I always use the full url (absolute link) with the www.for several reasons below.

        This should always be used in your links within your site and the code as well.

        Absolute link example is = http://www.your-site-url.com

        • easier and faster for search engines to follow

        • safer when worried about site hijacking

        • works better in emails ( make sure a visitor gets to the right page)

        • better if your content gets stolen and the thief does not take time to check and fix all the code (i actually caught someone who stole one of my sites content this way )

        If you use one version all the time you are also going to make sure you get all your link benefits to the right domain and not split between the two.

        Some seo's and many web designers don't use the full url to save time and code bloat of the site. Myself as  well as many other think the absolute link has added benefits.

        I hope that helps.

        igor.pinchevskiy 1 Reply Last reply Reply Quote 1
        • igor.pinchevskiy
          igor.pinchevskiy @jlane9 last edited by

          Hi Joseph, do you run into any SSL errors by using absolute links especially with images? I hate when you get an error message on secure pages saying that some content is not secure would you like to see it... do you think leaving the http part out is a better idea for sites that have SSL pages, use something like www.mydomain.com instead?

          Thanks!

          1 Reply Last reply Reply Quote 0
          • HandsomeWeb
            HandsomeWeb last edited by

            The issue is www.EXAMPLE.com and EXAMPLE.com are considered two different websites, and Google may split the links in if people are linking to both versions.  A 301 redirect tells Google to assume all links are pointed at one version.

            Your Question: I can see that it doesn't matter whether you type in 'www' or not in the url for a wordpress site, what is going on in the back end that allows this?

            My Answer: This is not WordPress, it is your web host.  Most LAMP webhosts will automatically server your website with our without "WWW".  WordPress will create the links on the pages it creates to the one specified in your settings, but the site will come up weather or not you use "WWW."

            To Address the Concern: Because you are using WordPress, you are probably on Apache, so add this to your .htaccess file in the root directory.

            After:

            END WordPress

            Add:

            Rewrite all old filenames RewriteEngine on

            Options +FollowSymlinks
            rewritecond %{http_host} ^EXAMPLE.com [nc] rewriterule ^(.*)$ http://www.EXAMPLE.com/$1 [r=301,nc]

            Test with and without "WWW." Test with a different browser.

            dnaynay 1 Reply Last reply Reply Quote 2
            • dnaynay
              dnaynay @HandsomeWeb last edited by

              Thanks Christopher.

              Sorry I'm not quite sure what the code you have supplied is for? My site currently works fine with or without the 'www' - but does the code you have supplied acheive something else?

              thanks

              d

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              • Link to AMP VS AMP Google Cache VS Standard page?
                joramtenham
                joramtenham
                0
                2
                88

              • Hi, we are wanting to test a new version of one particular page on our website. What's the best way to run a test for a week without harming rankings. Do we use a 302 redirect or direct 100% of traffic using a tool like Optimizely?
                WebElaine
                WebElaine
                0
                2
                33

              • Google Webmaster tools Sitemap submitted vs indexed vs Index Status
                K-WINTER
                K-WINTER
                0
                5
                20.5k

              • Need Help With WWW vs. Non-WWW Duplicate Pages
                mosquitohawk
                mosquitohawk
                0
                2
                197

              • Webmaster Tools vs Screaming from for 404's
                Adamshowbiz
                Adamshowbiz
                0
                4
                147

              • 'No Follow' and 'Do Follow' links when using WordPress plugins
                Hermski
                Hermski
                0
                5
                1.3k

              • Should we use & or and in our url's?
                jonny512379
                jonny512379
                0
                3
                667

              • Ideally should a 301 or 302 redirect be used from https://www.site.com to http://www.site.com? Is there a valid reason to use a 302 in this situation or would using a 301 have any negative impact on seo?
                Unity
                Unity
                0
                2
                317

              Get started with Moz Pro!

              Unlock the power of advanced SEO tools and data-driven insights.

              Start my free trial
              Products
              • Moz Pro
              • Moz Local
              • Moz API
              • Moz Data
              • STAT
              • Product Updates
              Moz Solutions
              • SMB Solutions
              • Agency Solutions
              • Enterprise Solutions
              • Digital Marketers
              Free SEO Tools
              • Domain Authority Checker
              • Link Explorer
              • Keyword Explorer
              • Competitive Research
              • Brand Authority Checker
              • Local Citation Checker
              • MozBar Extension
              • MozCast
              Resources
              • Blog
              • SEO Learning Center
              • Help Hub
              • Beginner's Guide to SEO
              • How-to Guides
              • Moz Academy
              • API Docs
              About Moz
              • About
              • Team
              • Careers
              • Contact
              Why Moz
              • Case Studies
              • Testimonials
              Get Involved
              • Become an Affiliate
              • MozCon
              • Webinars
              • Practical Marketer Series
              • MozPod
              Connect with us

              Contact the Help team

              Join our newsletter
              Moz logo
              © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
              • Accessibility
              • Terms of Use
              • Privacy