Skip to content
    Moz logo Menu open Menu close
    • Products
      • Moz Pro
      • Moz Pro Home
      • Moz Local
      • Moz Local Home
      • STAT
      • Moz API
      • Moz API Home
      • Compare SEO Products
      • Moz Data
    • Free SEO Tools
      • Domain Analysis
      • Keyword Explorer
      • Link Explorer
      • Competitive Research
      • MozBar
      • More Free SEO Tools
    • Learn SEO
      • Beginner's Guide to SEO
      • SEO Learning Center
      • Moz Academy
      • SEO Q&A
      • Webinars, Whitepapers, & Guides
    • Blog
    • Why Moz
      • Agency Solutions
      • Enterprise Solutions
      • Small Business Solutions
      • Case Studies
      • The Moz Story
      • New Releases
    • Log in
    • Log out
    • Products
      • Moz Pro

        Your all-in-one suite of SEO essentials.

      • Moz Local

        Raise your local SEO visibility with complete local SEO management.

      • STAT

        SERP tracking and analytics for enterprise SEO experts.

      • Moz API

        Power your SEO with our index of over 44 trillion links.

      • Compare SEO Products

        See which Moz SEO solution best meets your business needs.

      • Moz Data

        Power your SEO strategy & AI models with custom data solutions.

      NEW Keyword Suggestions by Topic
      Moz Pro

      NEW Keyword Suggestions by Topic

      Learn more
    • Free SEO Tools
      • Domain Analysis

        Get top competitive SEO metrics like DA, top pages and more.

      • Keyword Explorer

        Find traffic-driving keywords with our 1.25 billion+ keyword index.

      • Link Explorer

        Explore over 40 trillion links for powerful backlink data.

      • Competitive Research

        Uncover valuable insights on your organic search competitors.

      • MozBar

        See top SEO metrics for free as you browse the web.

      • More Free SEO Tools

        Explore all the free SEO tools Moz has to offer.

      What is your Brand Authority?
      Moz

      What is your Brand Authority?

      Check yours now
    • Learn SEO
      • Beginner's Guide to SEO

        The #1 most popular introduction to SEO, trusted by millions.

      • SEO Learning Center

        Broaden your knowledge with SEO resources for all skill levels.

      • On-Demand Webinars

        Learn modern SEO best practices from industry experts.

      • How-To Guides

        Step-by-step guides to search success from the authority on SEO.

      • Moz Academy

        Upskill and get certified with on-demand courses & certifications.

      • SEO Q&A

        Insights & discussions from an SEO community of 500,000+.

      Unlock flexible pricing & new endpoints
      Moz API

      Unlock flexible pricing & new endpoints

      Find your plan
    • Blog
    • Why Moz
      • Small Business Solutions

        Uncover insights to make smarter marketing decisions in less time.

      • Agency Solutions

        Earn & keep valuable clients with unparalleled data & insights.

      • Enterprise Solutions

        Gain a competitive edge in the ever-changing world of search.

      • The Moz Story

        Moz was the first & remains the most trusted SEO company.

      • Case Studies

        Explore how Moz drives ROI with a proven track record of success.

      • New Releases

        Get the scoop on the latest and greatest from Moz.

      Surface actionable competitive intel
      New Feature

      Surface actionable competitive intel

      Learn More
    • Log in
      • Moz Pro
      • Moz Local
      • Moz Local Dashboard
      • Moz API
      • Moz API Dashboard
      • Moz Academy
    • Avatar
      • Moz Home
      • Notifications
      • Account & Billing
      • Manage Users
      • Community Profile
      • My Q&A
      • My Videos
      • Log Out

    The Moz Q&A Forum

    • Forum
    • Questions
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

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

    1. Home
    2. SEO Tactics
    3. On-Page Optimization
    4. Can access my site using www

    Moz Q&A is closed.

    After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.

    Can access my site using www

    On-Page Optimization
    www to non www ssl
    3
    3
    3283
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with question management privileges can see it.
    • Voopoo
      Voopoo last edited by

      Hello, when I try to access my website using www i would like it to redirect to non www but instead it shows a sal error message.

      1 Reply Last reply Reply Quote 2
      • PrathameshMW
        PrathameshMW last edited by

        Yes, you can access your website using the prefix "www". The "www" is simply a subdomain that is conventionally used to identify web servers. It is not required by any technical standard, but it is a widely recognized convention.

        In short, you can access your website with or without the "www" prefix. It is simply a matter of personal preference.

        Here are the tutorials I have followed to set redirects with or without www.

        Via cPanel: https://www.milesweb.co.uk/hosting-faqs/redirect-www-non-www-urls-htaccess-cpanel/

        Via DirectAdmin: https://www.milesweb.co.uk/hosting-faqs/redirect-www-non-www-urls-htaccess-directadmin/

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

          This is common and can sometimes be easy to fix. Sometimes as simple as the setting of some HTTP rewrite rules in the .htaccess file. You will need to secure your domain for the wildcard domain including www when issuing an SSL certificate.

          If you are using WordPress there are add-ons such as Really Simple SSL to help you with this.

          Example of Rewrite

          RewriteEngine On
          # This will enable the Rewrite capabilities
          
          RewriteCond %{HTTPS} !=on
          # This checks to make sure the connection is not already HTTPS
          
          RewriteCond %{HTTP_HOST} ^yourdomain.com [NC]
          # Replace domain with your domain.
          
          RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [L,R=301]
          # Replace domain with your domain.
          

          This .htaccess rule will redirect all visitors from the non-www to the www version of your website.

          [https://www.hostinger.co.uk/tutorials/cpanel/how-to-redirect-non-www-urls-to-www](link url)

          This is the most common way however if you use CPanel it might be slightly different you might need to set up a redirect.

          If you use Cloudflare you can just use some page rules and use a forwarding URL with 301 permanently redirected to the non-www of the domain.

          Since we can use both www and non-www make sure your DNS records are updated for both.

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post

          Got a burning SEO question?

          Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.


          Start my free trial


          Browse Questions

          Explore more categories

          • Moz Tools

            Chat with the community about the Moz tools.

          • SEO Tactics

            Discuss the SEO process with fellow marketers

          • Community

            Discuss industry events, jobs, and news!

          • Digital Marketing

            Chat about tactics outside of SEO

          • Research & Trends

            Dive into research and trends in the search industry.

          • Support

            Connect on product support and feature requests.

          • See all categories

          Related Questions

          • SeoBlogs61

            Moving site from www to non www and also hosting to vps what will be the effect?

            shared hosting to vps www to non www

            Hi SEO gurus,
            I am trying to move my site from shared hosting to VPS hosting and also moving from www to non www version.
            What is the best possible way to avoid any issue and without losing the backlinks.
            Is it good or bad to do? URL: https://buylikesservices.com/

            Intermediate & Advanced SEO | | SeoBlogs61
            0
          • bsharath

            Is Disqus comments useful as per SEO?

            Is Disqus comments useful as per SEO? We have some comments on each of our pages and its time taking to moderate them, so wanted to know if its beneficial in any ways for SEO?

            On-Page Optimization | | bsharath
            0
          • marketing_zoovy.com

            Using Escaped Fragments with SEO

            Our e-commerce platform is in the process of changing to what we call app based stores (essentially running in a browser as single page web-app)  With these new stores they are being built in HTML 5 and using escaped fragments.
            Currently merchants are usually running 2 stores until we launch to app site at 100%.  My questions are really concerning the app stores which right now show on a subdomain but will essentially take over the primary domain.   Here is an example:
            app.tikimater.com and app.sportsworld.com Since I am not a developer, I'm really having a hard time understanding the escaped fragments. I'm using this but https://developers.google.com/webmasters/ajax-crawling/docs/getting-started I'm not sure what my actual urls should look like and what the canonical should be set to. Right now they have been removed but previously they had  http:app.tikimaster.com#!v=1  Also, and how I should be setting up my meta information for Google so 1) pages are indexed timely 2) pages are indexed with the correct information.  I am still setting the meta titles and descriptions but in some instances Google uses other info. With the new platform we are moving away from on page content (written paragraphs) but category pages would have related products embedded.  Should I still be pushing to have some type of intro text, since it would solely be for SEO and not the shoppers experience. All product pages have content (product description etc) Thank you for any advice

            On-Page Optimization | | marketing_zoovy.com
            0
          • crazymikesapps1

            How to re-follow using the WPSEO plugin

            Hello, I unindexed numerous blog low quality blog posts and nofollowed them at the same time using the Advanced meta tab for the Yoast WPSEO plugin. I am trying to reindex them, which I figured out and can successfully do, What I cannot figure out is these posts will not return to follow status and remain nofollow. I have been recreating the blog posts, but this is very time consuming. Is there some way to do this without have to reduplicate a new blog post? I Googled this and searched MOZ with no luck. thank you Mike

            On-Page Optimization | | crazymikesapps1
            0
          • seowhiskey

            Can I use the same text in my meta description as I put in my post excerpt?

            Hi, I'm just trying to understand the right way to optimise my blog posts and this is likely a dumb question... but to what extent should the text in my meta description differ from the text in my post excerpts? cheers, Andrew

            On-Page Optimization | | seowhiskey
            0
          • mtueckcr

            Should I use bold for the first few sentences of a text?

            I would like to know if anyone knew if the relevance of a page changes if I bold the first few sentences. Our journalist wants to bold the first few sentences in every article to make it easier to read, how does that affect SEO?

            On-Page Optimization | | mtueckcr
            0
          • jaybrn1

            Should I use my blog posts in a sub folder

            Ok I did a search and didn't see an answer to this exact question.  Most of them were about if a blog should be in a sub folder and not the blog posts themselves... so here it goes.  I have a blog on my website the blog itself is in /blog/ but the blog posts themselves are situated in the root folder so it looks something like mydomain.com/cool-seo-blog-post/ Is there any reason I should change this and make it read mydomain.com/blog/cool-seo-blog-post/

            On-Page Optimization | | jaybrn1
            0
          • Audiohype

            Using commas in the title tag?

            Is there a disadvantage/advantage to using commas to separate words in the title tag. Which will be more effective as a title tag: "keyword1 keyword2 - Brand" OR "keyword1, keyword2 - Brand"?

            On-Page Optimization | | Audiohype
            0

          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
          Free SEO Tools
          • Domain Authority Checker
          • Link Explorer
          • Keyword Explorer
          • Competitive Research
          • Brand Authority 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 - 2025 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
          • Accessibility
          • Terms of Use
          • Privacy

          Looks like your connection to Moz was lost, please wait while we try to reconnect.