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.

      NEW Keyword Suggestions by Topic
      Moz Pro

      NEW Keyword Suggestions by Topic

      Learn more
    • 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.

      • MozCon

        Save on Early Bird tickets and join us in London or New York City

      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. Intermediate & Advanced SEO
    4. Redirecting non www site

    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.

    Redirecting non www site

    Intermediate & Advanced SEO
    4
    6
    2484
    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.
    • Davenport-Tractor
      Davenport-Tractor last edited by

      Hello Ladies and Gentlemen.

      I 100% agree with the redirecting of the non www domain name. After all we see so many times, especially in MOZ how the two different domains contain different links, different DA and of course different PA. So I have posed the question to our IT company, "How would we go about redirecting our non www domain to the www version?", "Where would we do that?", " we cant do the redirect on our webserver because the website is listed as an IP address, not a domain name, so would we do the redirect somewhere at GoDaddy?" who is currently maintain our DNS record

      So here is the response from IT:  " I would setup a CNAME record in DNS (GoDaddy), such that no matter if you go to the bare domain, or the www, you end up in the same place. As for SEO, having a 301 redirect for your bare domain isn't necessary, because both the bare domain and the www are the same domain.  301 is a redirect for "permanently moved" and is common when you change domain names.  Using the bare domain or the www are NOT DIFFERENT DOMAINS, so the 301 would not be accurate, and you'd be telling engines you've moved, when you haven't - which may negatively impact your rank.

      It sounds to me that IT is NOT recommending the redirect. How can this be? Or are we talking about two different things? Will the redirect cause the melt down as the IT company suggests? Or do they nut understand SEO?

      1 Reply Last reply Reply Quote 0
      • Davenport-Tractor
        Davenport-Tractor last edited by

        Thanks for the help guys, but .........

        Well maybe I left out a few important pieces of information, because we need more accurate information.

        First we are not on a shared server, and don't use c panel. We are on a stand alone server. We don't use GoDaddy for anything other than that's where the domain name was purchased, so they currently have the DNS record pointer. We are running our website alone on a windows server enterprise 2007 edition.

        So even though EnvoyWeb above provided a detailed answer, those directions don't work under our edition of windows server.

        Any incite? Please?

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

          I'll concur that I don't give any money to Godaddy for this and other reasons, but if you are happy with them I hope this helpls:

          When using a Windows server, you can redirect to a 301 page using IIS.

          1. In the Internet Services Manager, select the file or folder you want to redirect.
          2. From the right-click menu, select a redirection to a URL.
          3. Specify the file name of the page to which you want to redirect.
          4. Select The exact URL entered above.
          5. Select A permanent redirection for this resource.
          6. Click Apply.
          1 Reply Last reply Reply Quote 0
          • GregB123
            GregB123 last edited by

            Everything I've read has said to redirect everything to either the www or non-www version. Usually in the htaccess file.

            It may be time to dump GoDaddy and get a more full-featured hosting company. I used to use Yahoo for my hosting and they also did not allow things like access to the htacess file and 301 redirects. Once I went to a better hosting company I was so much better off.

            Now I use GreenGeeks.com for all my hosting. They have a full cpanel and all the good features. They will do your site migration for free. If you don't know how to do the techy Server stuff, they have great free phone support that will actually do things like alter the htaccess while you are speaking to them (which they have done a few times now for me).

            1 Reply Last reply Reply Quote 0
            • Davenport-Tractor
              Davenport-Tractor last edited by

              Yes we already have chosen the preferred domain in GWMT, but that only effects Google spiders. We are hosted in a windows based IIS environment so there is no .htaccess file.

              So I guess my real question is how do we setup the redirect? Is that in the DNS server Godaddy? How to do that?

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

                Whether you care about SEO or not, redirect the non-preferred version to the preferred one (www or non-www) using a simple 301 redirection. If you have access to your web server, you can modify the .htaccess file at the root of your site. Google for the exact lines of codes to add (they depend on whether you are redirecting to the www or non-www version).

                You can use Google Webmaster Tools to choose a preferred version of site link for Google.

                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

                • GeezerG

                  How to handle potentially thousands (50k+) of 301 redirects following a major site replacement

                  We are looking for the very best way of handling potentially thousands (50k+) of 301 redirects following
                  a major site replacement and I mean total replacement. Things you should know
                  Existing domain has 17 years history with Google but rankings have suffered over the past year and yes we know why. (and the bitch is we paid a good sized SEO company for that ineffective and destructive work)
                  The URL structure of the new site is completely different and SEO friendly URL's rule. This means that there will be many thousands of historical URL's (mainly dynamic ones) that will attract 404 errors as they will not exist anymore. Most are product profile pages and the God Google has indexed them all. There are also many links to them out there.
                  The new site is fully SEO optimised and is passing all tests so far - however there is a way to go yet. So here are my thoughts on the possible ways of meeting our need,
                  1: Create 301 redirects for each an every page in the .htaccess file that would be one huge .htaccess file 50,000 lines plus - I am worried about effect on site speed.
                  2: Create 301 redirects for each and every unused folder, and wildcard the file names, this would be a single redirect for each file in each folder to a single redirect page
                  so the 404 issue is overcome but the user doesn't open the precise page they are after.
                  3: Write some code to create a hard copy 301 index.php file for each and every folder that is to be replaced.
                  4: Write code to create a hard copy 301 .php file for each and every page that is to be replaced.
                  5: We could just let the pages all die and list them with Google to advise of their death.
                  6: We could have the redirect managed by a database rather than .htaccess or single redirect files. Probably the most challenging thing will be to load the data in the first place, but I assume this could be done programatically - especially if the new URL can be inferred from the old. Many be I am missing another, simpler approach - please discuss

                  Intermediate & Advanced SEO | | GeezerG
                  0
                • gozmoz

                  Moving html site to wordpress and 301 redirect from index.htm to index.php or just www.example.com

                  I found page duplicate content when using Moz crawl tool, see below. http://www.example.com
                  Page Authority 40
                  Linking Root Domains 31
                  External Link Count 138
                  Internal Link Count 18
                  Status Code 200
                  1 duplicate http://www.example.com/index.htm
                  Page Authority 19
                  Linking Root Domains 1
                  External Link Count 0
                  Internal Link Count 15
                  Status Code 200
                  1 duplicate I have recently transfered my old html site to wordpress.
                  To keep the urls the same I am using a plugin which appends .htm at the end of each page. My old site home page was index.htm. I have created index.htm in wordpress as well but now there is a conflict of duplicate content. I am using latest post as my home page which is index.php Question 1.
                  Should I also use redirect 301 im htaccess file to transfer index.htm page authority (19) to www.example.com If yes, do I use
                  Redirect 301 /index.htm http://www.example.com/index.php
                  or
                  Redirect 301 /index.htm http://www.example.com Question 2
                  Should I change my "Home" menu link to http://www.example.com instead of http://www.example.com/index.htm that would fix the duplicate content, as indx.htm does not exist anymore. Is there a better option? Thanks

                  Intermediate & Advanced SEO | | gozmoz
                  0
                • NeatIT

                  6 .htaccess Rewrites: Remove index.html, Remove .html, Force non-www, Force Trailing Slash

                  i've to give some information about my website Environment 1. i have static webpage in the root. 2. Wordpress installed in sub-dictionary www.domain.com/blog/ 3. I have two .htaccess , one in the root and one in the wordpress
                  folder. i want to www to non on all URLs Remove index.html from url Remove all .html extension / Re-direct 301 to url
                  without .html extension Add trailing slash to the static webpages / Re-direct 301 from non-trailing slash Force trailing slash to the Wordpress Webpages / Re-direct 301 from non-trailing slash Some examples domain.tld/index.html >> domain.tld/ domain.tld/file.html >> domain.tld/file/ domain.tld/file.html/ >> domain.tld/file/ domain.tld/wordpress/post-name >> domain.tld/wordpress/post-name/ My code in ROOT htaccess is <ifmodule mod_rewrite.c="">Options +FollowSymLinks -MultiViews RewriteEngine On
                  RewriteBase / #removing trailing slash
                  RewriteCond %{REQUEST_FILENAME} !-d
                  RewriteRule ^(.*)/$ $1 [R=301,L] #www to non
                  RewriteCond %{HTTP_HOST} ^www.(([a-z0-9_]+.)?domain.com)$ [NC]
                  RewriteRule .? http://%1%{REQUEST_URI} [R=301,L] #html
                  RewriteCond %{REQUEST_FILENAME} !-f
                  RewriteCond %{REQUEST_FILENAME} !-d
                  RewriteRule ^([^.]+)$ $1.html [NC,L] #index redirect
                  RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index.html\ HTTP/
                  RewriteRule ^index.html$ http://domain.com/ [R=301,L]
                  RewriteCond %{THE_REQUEST} .html
                  RewriteRule ^(.*).html$ /$1 [R=301,L]</ifmodule> The above code do 1. redirect www to non-www
                  2. Remove trailing slash at the end (if exists)
                  3. Remove index.html
                  4. Remove all .html
                  5. Redirect 301 to filename but doesn't add trailing slash at the end

                  Intermediate & Advanced SEO | | NeatIT
                  0
                • SolveWebMedia

                  My site shows 503 error to Google bot, but can see the site fine. Not indexing in Google. Help

                  Hi, This site is not indexed on Google at all. http://www.thethreehorseshoespub.co.uk Looking into it, it seems to be giving a 503 error to the google bot. I can see the site I have checked source code Checked robots Did have a sitemap param. but removed it for testing GWMT is showing 'unreachable' if I submit a site map or fetch Any ideas on how to remove this error? Many thanks in advance

                  Intermediate & Advanced SEO | | SolveWebMedia
                  0
                • kdaniels

                  Moving to a new site while keeping old site live

                  For reasons I won't get into here, I need to move most of my site to a new domain (DOMAIN B) while keeping every single current detail on the old domain (DOMAIN A) as it is. Meaning, there will be 2 live websites that have mostly the same content, but I want the content to appear to search engines as though it now belongs to DOMAIN B. Weird situation. I know. I've run around in circles trying to figure out the best course of action. What do you think is the best way of going about this? Do I simply point DOMAIN A's canonical tags to the copied content on DOMAIN B and call it good? Should I ask sites that link to DOMAIN A to change their links to DOMAIN B, or start fresh and cut my losses? Should I still file a change of address with GWT, even though I'm not going to 301 redirect anything?

                  Intermediate & Advanced SEO | | kdaniels
                  0
                • EnvoyWeb

                  Duplicate Content www vs. non-www and best practices

                  I have a customer who had prior help on his website and I noticed a 301 redirect in his .htaccess Rule for duplicate content removal : www.domain.com vs domain.com RewriteCond %{HTTP_HOST} ^MY-CUSTOMER-SITE.com [NC]
                  RewriteRule (.*) http://www.MY-CUSTOMER-SITE.com/$1 [R=301,L,NC] The result of this rule is that i type MY-CUSTOMER-SITE.com in the browser and it redirects to www.MY-CUSTOMER-SITE.com I wonder if this is causing issues in SERPS.  If I have some inbound links pointing to www.MY-CUSTOMER-SITE.com and some pointing to MY-CUSTOMER-SITE.com, I would think that this rewrite isn't necessary as it would seem that Googlebot is smart enough to know that these aren't two sites. -----Can you comment on whether this is a best practice for all domains?
                  -----I've run a report for backlinks.  If my thought is true that there are some pointing to www.www.MY-CUSTOMER-SITE.com and some to the www.MY-CUSTOMER-SITE.com, is there any value in addressing this?

                  Intermediate & Advanced SEO | | EnvoyWeb
                  0
                • Webrevolve

                  Franchise sites on subdomains

                  I've been asked by a client to optimise a a webpage for a location i.e. London. Turns out that the location is actually a franchise of the main company. When the company launch a new franchise, so far they have simply added a new page to the main site, for example: mysite.co.uk/sub-folder/london They have so far done this for 10 or so franchises and task someone with optimising that page for their main keyword + location. I think I know the answer to this, but would like to get a back up / additional info on it in terms of ranking / seo benefits. I am going to suggest the idea of using a subdomain for each location, example: london.mysite.co.uk Would this be the correct approach. If you think yes, why? Many thanks,

                  Intermediate & Advanced SEO | | Webrevolve
                  0
                • James77

                  Is it possible to Spoof Analytics to give false Unique Visitor Data for Site A to Site B

                  Hi, We are working as a middle man between our client (website A) and another website (website B) where, website B is going to host a section around websites A products etc. The deal is that Website A (our client) will pay Website B based on the number of unique visitors they send them. As the middle man we are in charge of monitoring the number of Unique visitors sent though and are going to do this by monitoring Website A's analytics account and checking the number of Unique visitors sent. The deal is worth quite a lot of money, and as the middle man we are responsible for making sure that no funny business goes on (IE false visitors etc). So to make sure we have things covered - What I would like to know is 1/. Is it actually possible to fool analytics into reporting falsely high unique visitors from Webpage A to Site B (And if so how could they do it). 2/. What could we do to spot any potential abuse (IE is there an easy way to spot that these are spoofed visitors). Many thanks in advance

                  Intermediate & Advanced SEO | | James77
                  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
                • 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 - 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.