Skip to content
    Moz logo Menu open Menu close
    • Products
      • Moz Pro
      • Moz Pro Home
      • Moz Local
      • Moz Local Home
      • STAT
      • Moz API
      • 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.

      Discover Brand Authority
      Moz Pro

      Discover Brand Authority

      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?

      Take the quiz
    • 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+.

      June 3 & 4, 2024, Seattle
      MozCon

      June 3 & 4, 2024, Seattle

      Get tickets
    • 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: Moz Pro

      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

    Can access my site using www

    On-Page Optimization
    www to non www ssl
    3
    3
    3139
    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

          • bcuclassifieds

            How to handle SEO redirection after remove www

            www to non www redirect chain classified website

            Recently our https://bestclassifiedsusa.com free classifieds USA website we move from www to non www format. Now old urls still showing in Google SERP. When click they show 404 error pages due to removed old ads.
            We redirect www to non www version for main domain but still old cache pages affected.
            How to dynamically handle this case, all old www version ads pages auto redirect to relevant category pages?

            Technical SEO | | bcuclassifieds
            0
          • StevieD

            Can I use £ character in title tag?

            Hi - Can you use something like "save £££s" in the title tag. Have looked but can't see an answer. Thanks.

            On-Page Optimization | | StevieD
            0
          • seohlp44

            I'm using Canonical URL but still receiving message - Appropriate Use of Rel Canonical

            Hello, I checked my site and it looks like everything is setup correctly for canonical url but I keep getting the message that it's not. Am I doing something wrong? SORRY I FIGURED IT OUT! THANK YOU! HOW DO I DELETE THIS?

            On-Page Optimization | | seohlp44
            0
          • fredrikahlen

            Pre-launch site or not

            We are going to set up a new site in four months. Historically we always set up a simple Wordpress "Pre-launch-site" with relevant texts to start ranking in the SERP. Anyone with experience of doing/not doing this and what is had led to? A site with relevant texts also should have incoming links, which needs more work.

            On-Page Optimization | | fredrikahlen
            0
          • 2bloggers

            Using a keyword on homepage of a blog

            I have a blog and the homepage has the 5 most recent posts. I ran a report card on my homepage for my main keyword. One of the problems is that the keyword only appears 1 time. I don't want to put it in the signature of every post because I found that causing problems with self-cannibalizing. I checked my competitor and they got a check mark for this but I looked at their homepage and I found the keyword NOWHERE! So where is my competitor hiding the keywords and how can I get the keywords on the homepage when the content is constantly changing? Thanks in advance!

            On-Page Optimization | | 2bloggers
            0
          • jemindesai

            How can I reduce Too Many On-Page Links? I am looking for best method through which I can reduce by on page link.

            Hello, As I have the Pro Account in SEOMOZ . I have created the campaign for my website and I have seen the warring for on page analysis for Too Many On-Page Links. As per my knowledge in past it's matter that you can put maximum 100 links per page but now is it still matter or harm if pages has Too Many On-Page Links? And if yest then please let me know the best method to reduce my On-Page Links with out doing any major changes in website

            On-Page Optimization | | jemindesai
            0
          • russelljames

            What are the benefits of footer expanded site maps?

            Many sites display a site map on the bottom of each page with a limited depth of around two deep. Has anyone done a A/B test on this, for selected search terms? Is this good practice?

            On-Page Optimization | | russelljames
            0
          • LushDuck

            Articles on our own site?

            Hi Guy's Is it better to have articles on our own website under a news section, with keyword phrases that point to relevant pages or is it better to post them on our blog (that is seperate, we use blogger) and point them to relevant pages on our site? or maybe a bit of both? Thanks Daniel

            On-Page Optimization | | LushDuck
            0
          Moz logo
          • Contact
          • Community
          • Free Trial
          • Terms & Privacy
          • Accessibility
          • Jobs
          • Help
          • News & Press
          • MozCon
          © 2021 - 2024 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.

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