undefined
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. Www and non www how to check it.......for sure. No, really, for absolutely sure!!

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.

Www and non www how to check it.......for sure. No, really, for absolutely sure!!

Intermediate & Advanced SEO
5
25
10.1k
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.
  • RobertFisher
    RobertFisher last edited by Oct 4, 2011, 12:31 AM

    Ok, I know it has been asked, answered, and re-asked but I am going to ask for a specific reason. As you know, anyone who is a graphic designer or web developer is also an expert in SEO....Right??? 
    I am dealing with a client who is clinging to a developer but wants us to do the SEO on a myriad of sites. All connect to his main site via links, etc. The main site was just redeveloped by a developer who claims extensive SEO knowledge. The client who referred me to them is getting over twenty times the organic clients they are and is in a JV with the new client. Soooo, I want to show them once and for all they are wrong on the www. versus non-www.

    When I do a Site:NewClient.com in Google I get a total of 13 www.newclient.com url's and 20 newclient.com url's without the www. Oddly, none are dupes of the other. So, where the www.NewClient/toy-boat/ is there, the other might be non www.  NewClient/toy-boat/sailing-green/

    Even the contact page is in the www.NewClient/contact versus the non www of NewClient/Contact-us/

    But, both pages seem to resolve to the non www. (A note here is that I originally instructed the designer to do non www to www. because the page authority was on the www.NewClient and he did opposite.

    With pages that are actually PDF files, if you try to use the www.NewClient/CoolGuy.pdf it comes up 404.

    When I check our sites, using Site:We-Build-Better.com ours return all www.We-Build-better/ url's.

    So, any other advice on how to insure these correct or incorrect? Oddly, we have discovered that sometimes in OSE, even with a correct canonical redirect it shows one without authority and the other with....we have contacted support.

    Come on mozzers, hook a brother up!

    1 Reply Last reply Reply Quote 0
    • ShaMenz
      ShaMenz last edited by Oct 4, 2011, 12:52 PM Oct 4, 2011, 12:52 PM

      Hi again Robert,

      God of All Things Code is away from the office for a while today, so will need to wait a little longer for his input.

      A couple of things that happened since my last post though:

      Those twitching antennae just wouldn't stop nudging me to look a little further as everything I see with this site is saying "template" to me. Add to that the URL rewrites which hide the actual URL's and the broken pdf files...so i went digging a little further and ... Aha!

      Not a template, but a "Theme". The entire site is built in Wordpress!

      Now, I am pretty sure that the broken pdf's are the result of the Wordpress URL rewrites changing the directory name in combination with the hard coded links. If this is the case, then it ought to be just a matter of adding a rule to the .htaccess file to deal specifically with the pdf's. The order in which the rules appear will determine whether the issue is resolved or not.

      I'll let you know as soon as I've confirmed the specifics with my Boss.

      Hope that helps,

      Sha

      1 Reply Last reply Reply Quote 0
      • RobertFisher
        RobertFisher @RobertFisher last edited by Oct 4, 2011, 10:11 AM Oct 4, 2011, 10:11 AM

        Well done, good point on pref setting in WMT. Thanks,

        1 Reply Last reply Reply Quote 0
        • RobertFisher
          RobertFisher @AlanMosley last edited by Oct 4, 2011, 10:07 AM Oct 4, 2011, 10:06 AM

          OK Ryan, you don't sleep and that was funny ;).

          1 Reply Last reply Reply Quote 0
          • ShaMenz
            ShaMenz last edited by Oct 4, 2011, 12:41 PM Oct 4, 2011, 5:48 AM

            OK Robert,

            First I'm going to tip my hat to Ryan, who has perfectly explained the fact that some of what you see in your site: search can be because the 301's have not yet been recognized by the search engine.

            Second, an apology to Alan as I went right to the LAMP solution because of prior knowledge from a previous thread or two 😉 that you were going to be talking about .htaccess 🙂

            Now...I will spell out a couple of things because I have a feeling that you are likely to come across them again in the future and quick recognition can often mean a lot of time saved.

            So here goes.

            When I first read your question, my little web developer antennae suddenly started twitching! When I hear that there are multiple versions of a file with different file names deployed on a server I generally suspect one of two things:

            • The site has been developed from a standard Template package, or
            • There has just been a little "untidiness" taking place in the development process.

            In your example, the /contact.php was the original file deployed live to the server, then the /contact-us.php file was created to replace it (presumably for SEO purposes - debatable, but that is a whole other conversation). As I'm sure you can imagine, /contact is pretty common in template packages, although the biggest template producer out there is much easier to spot, as the pages in their templates are always in the format /index-1.htm etc. It may just be that the developer creates their own standard template from an original design and rather than pre-planning and creating the file names to maximize SEO, they create standard page names and change them later.

            While there is nothing really wrong with either of these things (unless you are charging the client for an original design and buying a pre-designed template at a fraction of the cost), both methods do open up the way for mistakes and errors to occur. As a result, there are a few things to keep in mind if you are working this way -

            1. It is a much better idea to build on a development server so that none of the files that will become obsolete during the process will be indexed by search engines in the meantime. Tidy architecture, remove the obsolete files, test, then push to production.
            2. When changing file names it is ALWAYS better to re-name the existing file and do a global update of links rather than create a duplicate with a different name. As soon as you create two files, you open up the possibility of accidentally linking both files within the site. You could have /contact.php linked from the home page and contact-us.php linked from the footer for example. There is a danger here that should you decide to delete the unwanted file, you create broken links without knowing it, or you have duplicate content. Either way, you have to recognize the problem and either fix it, or put a 301 in place to catch it.
            3. NEVER hard code your links, because as soon as you change the name of the directory you placed your files in, you create a broken link! If you use relative links, the change of directory name will not matter.

            I can see from Screaming Frog that some of the URL's for the pdf files have 301's in place, but it appears that the Redirect URL may also be hard coded to the /pdfs directory.  The fact that they all return a 404 when the directory name is changed to match that section makes it purely a guess as to what is happening here. It seems both www and non www pdf's are returning 404's in the browser.

            The picture is muddied a little by the fact that there appear to be internal URL rewrites in the mix as well (to produce those pretty URL's with trailing slashes). So, there are a few options as to why the pdf's are not accessible:

            1. They are not actually on the server at all (unlikely)
            2. The names of the pdf's themselves have been changed, so even if the URL rewrite is sending the request to the new directory, the file requested does not exist.
            3. The /pdfs directory has been named something completely different and the hard coding is the problem
            4. The /pdfs directory has been moved to another location within the site architecture

            I tried guessing a couple dozen of the obvious options, but no luck I'm afraid 🙂

            There is one other possibility, in that the internal URL rewrites and 301 redirects could be creating a problem for each other. I am not clever enough to identify whether this is the case without a hint from the code, but will ask the God of All Things Code (my Boss) if he can answer that for me when daytime arrives 8D

            OK....this is now so long that I really need to read the whole thread back to see if I have forgotten anything! If I find something I have missed, or can find anything else when help arrives, I'll be back!

            Hope it makes some sort of sense and ultimately helps,

            Sha

            1 Reply Last reply Reply Quote 3
            • AlanMosley
              AlanMosley @RobertFisher last edited by Oct 4, 2011, 3:50 AM Oct 4, 2011, 3:50 AM

              This info is really not browser dependent, just displayed differently.

              But as i stated elswhere, if you PM me the Url i can give you a site wide report that will show you any cononical problems, or any problems for that matter.

              1 Reply Last reply Reply Quote 0
              • RobertFisher
                RobertFisher @AlanMosley last edited by Oct 4, 2011, 3:25 AM Oct 4, 2011, 3:25 AM

                Thanks for this Alan, I use Linux / Apache but having the IE info is a big help. Usually have Chrome or Firefox up, but some real estate sites here only use IE.

                AlanMosley 1 Reply Last reply Oct 4, 2011, 3:50 AM Reply Quote 0
                • RyanKent
                  RyanKent @RobertFisher last edited by Oct 4, 2011, 10:10 AM Oct 4, 2011, 1:56 AM

                  I want a sure way to know this ...person....did what they are telling their client they did.

                  Perhaps someone has more creativity then myself but I do not know any means by which you can be 100% certain a sitewide 301 is implemented without seeing the file on the server. The "file" varies based on the server type. As you know, for Apache servers the .htaccess file is the right one.

                  Even if you saw the .htaccess file, it is possible for another file to overwrite the command. The way I always have verified is by looking at the site itself. Check the home page and a few other pages. If they are all 301'd properly, then I presume the developer performed their job correctly. It would actually be a lot more work for the developer to attempt to fool you by 301'ing part of the site but not all.

                  I also suggest ensuring your site's www or non-www standard appears correctly in your crawl report.

                  Is my assumption that if a 301 was done in .htaccess, there should be no www showing in Google Site:?

                  That is not necessarily true. If you have a site which shows mixed URL results, then overtime the results from a site: search will be standardized, but it will take time as Google needs to crawl each and every page of the site and see the 301. Also if any page is blocked by robots.txt for example, then Google may not see the 301 for that page and still list the old url.

                  If you changed the Google WMT preferred domain setting, then it is true you will only see one version of the URL. I would specifically advise you NOT to change that setting in this case as it may cover up the developer's issue which you are trying to locate. As for now, you can wait 30 days and perform a site: search. Investigate any bad URLs you find.

                  1 Reply Last reply Reply Quote 3
                  • AlanMosley
                    AlanMosley @RobertFisher last edited by Oct 4, 2011, 1:54 AM Oct 4, 2011, 1:54 AM

                    If you want Robert, if you PM me the url, i will give you a site wide check

                    1 Reply Last reply Reply Quote 0
                    • RobertFisher
                      RobertFisher @RyanKent last edited by Oct 4, 2011, 1:53 AM Oct 4, 2011, 1:53 AM

                      I shot you a PM. Just dont want the other guys info out. If it was my site and I had full control would tell all. Sha got one too. Thanks

                      1 Reply Last reply Reply Quote 0
                      • RobertFisher
                        RobertFisher @RyanKent last edited by Oct 4, 2011, 1:53 AM Oct 4, 2011, 1:53 AM

                        I shot you a PM. Just dont want the other guys info out. If it was my site and I had full control would tell all. Sha got one too. Thanks

                        1 Reply Last reply Reply Quote 0
                        • RobertFisher
                          RobertFisher @RobertFisher last edited by Oct 4, 2011, 1:51 AM Oct 4, 2011, 1:51 AM

                          We are linux on all though. So the .htaccess file is the bomb with a 301 and we follow up with setting preference in Google webmaster tools.

                          1 Reply Last reply Reply Quote 0
                          • AlanMosley
                            AlanMosley @AlanMosley last edited by Oct 4, 2011, 1:50 AM Oct 4, 2011, 1:50 AM

                            Private Message Ok, should of been obvious

                            1 Reply Last reply Reply Quote 0
                            • RyanKent
                              RyanKent @AlanMosley last edited by Oct 4, 2011, 1:48 AM Oct 4, 2011, 1:48 AM

                              Well if Robert Private Messages Sha, then you would be missing that message 🙂

                              1 Reply Last reply Reply Quote 0
                              • AlanMosley
                                AlanMosley @ShaMenz last edited by Oct 4, 2011, 1:46 AM Oct 4, 2011, 1:46 AM

                                Sha, what does PM stand for? Am I missing somthing?

                                RyanKent AlanMosley RobertFisher 3 Replies Last reply Oct 4, 2011, 10:06 AM Reply Quote 0
                                • AlanMosley
                                  AlanMosley @RobertFisher last edited by Oct 4, 2011, 1:42 AM Oct 4, 2011, 1:42 AM

                                  just a point, you dont need to do a 301 in the .htaccess file.

                                  I work with Microsoft Technolgies, and we dont use them, .htacces is a linux appache thing

                                  1 Reply Last reply Reply Quote 0
                                  • RobertFisher
                                    RobertFisher @RyanKent last edited by Oct 4, 2011, 1:41 AM Oct 4, 2011, 1:41 AM

                                    Unfortunately, the other developer controls all. We develop a set of sites that are essentially micro sites that advertise particular facets of our clients professional practice. With our sites when we have the main site and the micro sites, we make the 301 change in the .htaccess and then set the preference with Google per webmaster tools. We look first to see where the page authority lies and redirect from weak to strong if just for www/non www. With a new TLD, obviously, it is from old to new.

                                    I want a sure way to know this ...person....did what they are telling their client they did. It does not appear so. With ours when we do a site:OurSite we get what we assumed on every page of Google search. With this one it is four pages with the 13 www and 20 non www. Some www urls resolve to the non and some do not. When I look in OSE, I see where there is mention of a redirect from www to non www, and the non www all with PA of 1, DA of 15. With www, PA is 25 for home page.

                                    Is my assumption that if a 301 was done in .htaccess, there should be no www showing in Google Site:?

                                    Thanks

                                    RyanKent RobertFisher 2 Replies Last reply Oct 4, 2011, 10:11 AM Reply Quote 0
                                    • RobertFisher
                                      RobertFisher @ShaMenz last edited by Oct 4, 2011, 1:32 AM Oct 4, 2011, 1:32 AM

                                      no .htaccess file access.......hard to even get to site pages to place links to microsites.

                                      I will PM the url. Thanks Sha

                                      You are correct, I want to know did this other developer really do a 301 in the .htaccess file that will allow all weight to inure to one or the other url.

                                      AlanMosley RobertFisher 3 Replies Last reply Oct 4, 2011, 1:54 AM Reply Quote 0
                                      • RobertFisher
                                        RobertFisher @ShaMenz last edited by Oct 4, 2011, 1:32 AM Oct 4, 2011, 1:32 AM

                                        no .htaccess file access.......hard to even get to site pages to place links to microsites.

                                        I will PM the url. Thanks Sha

                                        You are correct, I want to know did this other developer really do a 301 in the .htaccess file that will allow all weight to inure to one or the other url.

                                        1 Reply Last reply Reply Quote 0
                                        • RobertFisher
                                          RobertFisher @ShaMenz last edited by Oct 4, 2011, 1:32 AM Oct 4, 2011, 1:32 AM

                                          no .htaccess file access.......hard to even get to site pages to place links to microsites.

                                          I will PM the url. Thanks Sha

                                          You are correct, I want to know did this other developer really do a 301 in the .htaccess file that will allow all weight to inure to one or the other url.

                                          1 Reply Last reply Reply Quote 0
                                          • RyanKent
                                            RyanKent last edited by Oct 4, 2011, 1:22 AM Oct 4, 2011, 1:22 AM

                                            Hi Robert.

                                            Once you determine which version of a URL you would like to represent your site, the best method to enforce that decision is to use a 301 redirect. For example, direct all non-www traffic to the www version of the URL the same way SEOmoz URLs appear. With this approach, 100% of your URLs will appears as the "www" version in SERPs and there will never be any confusion or conflict.

                                            I've heard people talk about using canonicals or setting the preferred domain in WMT. Neither step is necessary as long as the 301 is in place. The reason I still do both is I like to account for failures in a process. You never know when someone will make an error and modify an .htaccess file incorrectly and wipe out your redirect.

                                            If you have the redirect in place, OSE and similar tools should clearly see the redirect and act appropriately every time. If the tool does not work correctly, I would examine the header tag of the page to ensure the 301 is working properly. If it is, then I would perform the same action you did and report the bug.

                                            If you do not take the proper steps to enforce a "www" or "non-www" structure, you will see the results which you described. Some users will visit and link to each version of the page which will lead to both versions of URLs being indexed. Google will index a version based on which was discovered first or which version it deems more important based on links and other factors. When you perform searches for a site, some URLs will appear with the "www" and some without it. The backlinks will be divided and, as you know, that is bad for SEO. The duplicate content issue will set off alarms for the SEOmoz crawler and similar tools, but Google will still index one version of the page.

                                            I am not sure if this completely answers your question Robert. If I missed anything, feel free to ask.

                                            RobertFisher 3 Replies Last reply Oct 4, 2011, 1:53 AM Reply Quote 2
                                            • AlanMosley
                                              AlanMosley @ChristopherGlaeser last edited by Oct 4, 2011, 10:11 AM Oct 4, 2011, 1:18 AM

                                              Thwe SEO Toolkit sees the same probnlems as Bing sees, you need windows and you need to install IIS  (add features) first
                                              http://www.iis.net/download/SEOToolkit

                                              1 Reply Last reply Reply Quote 1
                                              • ChristopherGlaeser
                                                ChristopherGlaeser @AlanMosley last edited by Oct 4, 2011, 1:15 AM Oct 4, 2011, 1:15 AM

                                                What is the SEO Toolkit that runs on Windows?

                                                Best,
                                                Christopher

                                                AlanMosley 1 Reply Last reply Oct 4, 2011, 1:18 AM Reply Quote 0
                                                • ShaMenz
                                                  ShaMenz last edited by Oct 4, 2011, 1:05 AM Oct 4, 2011, 1:03 AM

                                                  Hi Robert,

                                                  OK, just to clarify...

                                                  1. You want to check for sure that newclient.com is 301 redirected to www.newclient.com?
                                                  2. You want to check for sure that ALL URL's which have been individually 301'd are redirecting to www.newclient.com/filename?
                                                  3. You want to understand why the non www version of pdf files works and the other doesnt?

                                                  Right off the top, the definitive way to check whether there is a properly functioning redirect in place is to type the URL into a browser and see whether it resolves to the redirect target :). You can also run Screaming Frog and see what status the pages return, but be aware that this does not always reflect the real situation in the browser (pages can return status that does not match what you see).

                                                  On the other questions, I think perhaps what you really want is to first determine what is happening and then, WHY?

                                                  So, first things first:

                                                  • do you have access to the .htaccess file?
                                                  • Can you provide the URL (and .htaccess if you have it)? You can PM this info if you don't want to share it publicly.

                                                  Sha

                                                  RobertFisher AlanMosley 4 Replies Last reply Oct 4, 2011, 1:46 AM Reply Quote 0
                                                  • AlanMosley
                                                    AlanMosley last edited by Oct 4, 2011, 1:00 AM Oct 4, 2011, 1:00 AM

                                                    Not quite sure I understand what you want to check, but as long as one 301's to the other it does not really matter. it may take some time for SE's to catch up.

                                                    Are you saying you want to check if it is resolving correctly?
                                                    in IE click F12, and then select Network and start capturing, you will see if its useing a 301, or a useless 302.

                                                    If you want to prove to your client that the developer is not on the ball, do a scan with the SEO Toolkit and show the results, if you dont have windows too install it on, i will do one for you.

                                                    ChristopherGlaeser RobertFisher 2 Replies Last reply Oct 4, 2011, 3:25 AM Reply Quote 1
                                                    • 1 / 1
                                                    1 out of 25
                                                    • First post
                                                      1/25
                                                      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

                                                    • 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 | Feb 23, 2017, 12:19 PM | gozmoz
                                                      0
                                                    • seoman10

                                                      Check website update frequency?

                                                      Is the tools out there that can check our frequently website is updated with new content products? I'm trying to do an SEO analysis between two websites. Thanks in advance Richard

                                                      Intermediate & Advanced SEO | Aug 19, 2016, 3:42 PM | seoman10
                                                      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 | Jul 18, 2020, 4:14 AM | NeatIT
                                                      0
                                                    • Choice

                                                      Does a non-canonical URL pass link juice?

                                                      Our site received a great link from URL A, which was syndicated to URL B. But URL B is canonicalized to URL A. Does the link on URL B pass juice to my site? (See image below for a visual representation of my question) zgbzqBy

                                                      Intermediate & Advanced SEO | Jul 2, 2015, 4:01 PM | Choice
                                                      1
                                                    • inhouseseo

                                                      "sex" in non-adult domain name

                                                      I have a client with a domain that has "sex" in the domain name. For example, electronicsexpo.com. The domain ranks for a few keywords related to the services offered. It is an old domain that has been online for over 10 years. It ranks well for local keywords. No real SEO effort has been made on this domain, so it is rather a clean slate. I am going to be doing SEO on this site. Will the fact that the word "sex" exists in the name have any sort of negative consequence. There is ABSOLUTELY NOTHING adult related or pornographic on this site. I would think that search engines are sophisticated enough to differentiate, but would potential customers with things like parental filters be blocked from viewing content? Is this hurtful in anyway? If so, would I be better off changing domain names? TIA

                                                      Intermediate & Advanced SEO | Jun 21, 2015, 9:12 AM | inhouseseo
                                                      0
                                                    • lcourse

                                                      Is using dots in URL path really a problem?

                                                      we have a couple of pages displaying a dot in the URL path like domain.com/mr.smith/widget-mr.smith It displays fine in chrome, firefox and IE and for the user it may actually look better than replacing it by _ or -. Did this ever cause problems to anybody?
                                                      Any statement from google about it?
                                                      Should I change existing URLs? If so, which other characters can I use in the URL instead of underscore and dash, since in our system dash and underscore are already used for rewriting other characters. Thanks

                                                      Intermediate & Advanced SEO | Jul 10, 2013, 10:06 AM | lcourse
                                                      0
                                                    • PedroM

                                                      Tool to check XML sitemap

                                                      Hello, Can anyone help me finding a tool to have closer look of the XML sitemap? Tks in advance! PP

                                                      Intermediate & Advanced SEO | Aug 9, 2012, 6:03 PM | PedroM
                                                      0
                                                    • seointern

                                                      301 redirect from .html to non .html?

                                                      Previously our site was using this as our URL structure: www.site.com/page.html. A few months ago we updated our URL structure to this: www.site.com/page & we're not using the .html. I've read over this guide & don't see anywhere that discusses this: http://www.seomoz.org/learn-seo/redirection. I've currently got a programmer looking into, but am always a bit weary with their workarounds, as I'd previously had them cause more problems then fix it. Here is the solution he is looking to do: The way that I am doing the redirect is fine. The problem is of where to put the code. The issue is that the files are .html files that need to be redirected to the same url with out a .html on them. I can see if I can add that to the 404 redirect page if there is one inside of there and see if that does the trick. That way if there is no page that exists without the .html then it will still be a 404 page. However if it is there then it will work as normal. I will see what I can find and get back. Any help would be greatly appreciated. Thanks, BJ

                                                      Intermediate & Advanced SEO | Oct 12, 2011, 5:20 AM | seointern
                                                      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.