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. Other Research Tools
    4. Ajax #! URL support?

    Ajax #! URL support?

    Other Research Tools
    2 2 316
    • 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.
    • oneactlife
      oneactlife last edited by

      Hi Moz,

      My site is currently following the convention outlined here:

      https://support.google.com/webmasters/answer/174992?hl=en

      Basically since pages are generated via Ajax we are setup to direct bots that replace the #! in a url with ?escaped_fragment to cached versions of the ajax generated content.

      For example, if the bot sees this url:

      http://www.discoverymap.com/#!/California/Map-of-Carmel/73

      it will replace it will instead access the page:

      http://www.discoverymap.com/?_escaped_fragment_=/California/Map-of-Carmel/73

      In which case my server serves the cached html instead of the live page. This is all per Googles direction and is indexing fine.

      However the MOZ bot does not do this. It seems like a fairly straight-forward feature to support. Rather than ignoring the hash, you look to see if it is a #! and then try to spider the url replaced with ?escaped_fragment. Our server does the rest.

      If this is something MOZ plans on supporting in the future I would love to know. If there is other information that would be great.

      Also, pushstate is not practical for everyone due to limited browser support, etc.

      Thanks,

      Dustin

      Updates:

      I am editing my question because it won't let me respond to my own question. It says I need to sign up for MOZ analytics. I was signed up for Moz Analytics?! Now I am not? I responded to my invitation weeks ago?

      Anyway, you are misunderstanding how this process works. There is no site-map involved. The bot reads this URL on the page:

      http://www.discoverymap.com/#!/California/Map-of-Carmel/73

      And when it is ready to spider the page for content it, it spider's this URL instead:

      http://www.discoverymap.com/?_escaped_fragment_=/California/Map-of-Carmel/73

      The server does the rest, it is simply telling Roger to recognize the #! format and replace it with

      ?escaped_fragment

      Though I obviously do not know how Roger is coded but it is a simple string replacement.

      Thanks.

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

        Hello Dustin, this is Abe on the Moz Help team.

        This question is a bit intricate, I apologize if i am not reading your question correctly.

        With AJAX content like this, I know Google's full specifications

        https://developers.google.com/webmasters/ajax-crawling/docs/specification

        indicate that the #! and ?escaped_fragment= technique works for their crawlers. However, Roger is a bit picky and isn't robust enough yet to use only the sitemap as the reference in this case. Luckily, one of our wonderful users came up with a solution using pushState() method. Click here:

        http://www.moz.com/blog/create-crawlable-link-friendly-ajax-websites-using-pushstate

        to find out how to create crawl-able content using pushState . This should help our crawler read AJAX content. Let me know if this information works for you!

        I hope this helps 🙂

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        • Refering URL Does Not Exist
          iamharoldadams
          iamharoldadams
          0
          6
          40

        • URL country
          eli.myers
          eli.myers
          0
          3
          166

        • Not sure where this url has come from
          MattRoney
          MattRoney
          0
          8
          93

        • Sorry, but that URL is inaccessible.
          KristinaKeyser
          KristinaKeyser
          0
          3
          174

        • Rogerbot will not crawl my site! Site URL is https but keep getting and error that homepage (http) can not be accessed. I set up a second campaign to alter the target url to the newer https version but still getting the same error! What can I do?
          DirkC
          DirkC
          0
          3
          200

        • URL Link Counts
          DavidLee
          DavidLee
          0
          7
          456

        • URLS appearing twice in Moz crawl
          DavidLee
          DavidLee
          0
          3
          104

        • When attempting to crawl my site, I'm getting the error: Oops! That URL doesn’t resolve, which means your report will be blank. Please fix the issue or change the URL. What's going on here?
          KeriMorgret
          KeriMorgret
          0
          4
          305

        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