The Moz Q&A Forum

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

    Welcome to the Q&A Forum

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

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Technical SEO Issues
    4. 404 or rel="canonical" for empty search results?

    404 or rel="canonical" for empty search results?

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

      We have search on our site, using the URL, so we might have: example.com/location-1/service-1, or example.com/location-2/service-2. Since we're a directory we want these pages to rank.

      Sometimes, there are no search results for a particular location/service combo, and when that happens we show an advanced search form that lets the user choose another location, or expand the search area, or otherwise help themselves. However, that search form still appears at the URL example.com/location/service - so there are several location/service combos on our website that show that particular form, leading to duplicate content issues.

      We may have search results to display on these pages in the future, so we want to keep them around, and would like Google to look at them and even index them if that happens, so what's the best option here? Should we rel="canonical" the page to the example.com/search (where the search form usually resides)? Should we serve the search form page with an HTTP 404 header? Something else?

      I look forward to the discussion.

      1 Reply Last reply Reply Quote 1
      • netzkern_AG
        netzkern_AG last edited by

        I would not use a canonical here. I'd implement a logic that sets empty categories on noindex as long as they are empty IF they are really, really useful and needed there, which I kinda doubt. Might be if you display a "no entry yet - place your location here" registration form or something like that. Nearly as likely I'd just kill them and recreate them when/if there is actually useful content for the page. Core question I'd ask is: What exact use DO such pages have for users/search engines? (and NOT: What future use might they eventually have some day for you/others?)

        Nico

        4RS_John 1 Reply Last reply Reply Quote 2
        • 4RS_John
          4RS_John @netzkern_AG last edited by

          Your'e right, ideally these URLs would not exist until needed. The problem I have is that our search is set up so it doesn't require an HTTP Post to the server - it works by manipulating the URL, so if someone searches for Service 5 at Location 1, the URL /location-1/service-5 has to present them with something - we're using a search form, but a signup form would work well too, and I think there is some limited use to the user to say "no, we don't have anything here."

          I guess I could rebuild the page somewhat to make the "There are no results for Service 5 at Location 1" message bigger - it could even be in the Title / H1, then show my re-search or signup form - that would get rid of duplicate title tag problems, but my content would still essentially be the same - a form - so I'd have duplicate content problems.

          Noindex would be a good idea, and easy to do. Do you know how easy it is to un-noindex later? As in, if I remove the noindex meta tag or header, how long will it take search engines to pick up on the change?

          These URLs are in my sitemap too, and I should try to get rid of them there, but checking if there are search results in each location when building the sitemap is going to kill the webserver 😉

          TrentonGreener 1 Reply Last reply Reply Quote 1
          • TrentonGreener
            TrentonGreener @4RS_John last edited by

            John,

            I'm in agreement with Netzkern on this matter. If those pages currently have little to no value, I'd personally noindex those pages that provide no content. To answer your question, for them to be re-indexed, it would simply just take a new crawl. If you have your XML sitemaps setup correctly, resubmitting these when a page is no longer a 'noindex' should expedite this process.

            Even if you do not take the above step, I would caution you not to change the Titles to include that there is no content at that specific location. Keep in mind that title tags serve to tell search engines what content is found on a page & to communicate the same for users when they see your page in a SERP. This would likely tank your CTR on any pages that had no content, which could pose a problem.

            Hope this helps!

            Trenton

            4RS_John 1 Reply Last reply Reply Quote 2
            • 4RS_John
              4RS_John @TrentonGreener last edited by

              That's smart about the title tag. I'm not super concerned about CTR for pages that have no content - but that's because I assume they're not ranked well, since they have no content, and I could be wrong about that. However, when they do start having content, that delay between when they have content and when Google updates the title that it displays will not be fun.

              It looks like noindex is the way to go here - thanks to both you & Nico - I hadn't even thought of it, I was stuck on 404 vs canonical.

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

                Nonindex sounds like a great idea. But should those empty search pages have the HTTP status 404 or 200?

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                • Rel="canonical" in hyperlink
                  Dr-Pete
                  Dr-Pete
                  0
                  6
                  140

                • Meta data & xml sitemaps for mobile sites when using rel="canonical"/rel="alternate" annotations
                  Dr-Pete
                  Dr-Pete
                  0
                  2
                  714

                • Rel="canonical"
                  AndieF
                  AndieF
                  0
                  2
                  73

                • Implementation of rel="next" & rel="prev"
                  KeriMorgret
                  KeriMorgret
                  0
                  8
                  1.4k

                • Rel="canonical"
                  cufflinksman
                  cufflinksman
                  0
                  4
                  117

                • Choosing the right page for rel="canonical"
                  jfmonfette
                  jfmonfette
                  0
                  3
                  118

                • Rel="canonical" of .html/ to .html
                  irvingw
                  irvingw
                  0
                  3
                  154

                • Rel="canonical" for PFDs?
                  RyanKent
                  RyanKent
                  0
                  4
                  729

                Get started with Moz Pro!

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

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

                Contact the Help team

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