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. On-Page / Site Optimization
    4. Javascript(0) extension causing an excess of 404's

    Javascript(0) extension causing an excess of 404's

    On-Page / Site Optimization
    2 2 413
    • 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.
    • jasonfox.me
      jasonfox.me last edited by

      For some reason I am getting a duplicate version of my urls with /javascript(0) at the end.  These are creating an abundance of 404 errors.  I know I am not supposed to block JS files so what is the best way to block these?

      Ex:

      http://www.jasonfox.me/infographics/page/8/javascript(0) is a 404

      http://www.jasonfox.me/infographics/page/8/  is not

      Thank you.

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

        That's correct.

        In your HTML you have code as:

        • [_this is the search icon and as it's created it fool some bots that there is file javascript(0) in current folder. So if i'm here:
          http://www.jasonfox.me/infographics/page/9/
          then bot add file this as relative and full path became:
          http://www.jasonfox.me/infographics/page/9/javascript(0)
          and this is how 404 is make.

          Correct way is to replace "javascript(0);" with "javascript:void(0)" or with "#". Only this patch in WordPress theme (look around header.php) will stop 404s._](javascript(0);)

        1 Reply Last reply Reply Quote 3
        • 1 / 1
        • First post
          Last post
        • Weird 404 Error URL's - Where to redirect?
          MrWhippy
          MrWhippy
          0
          6
          63

        • Will Multiple 301's to the Same URL Cause Issues?
          kbates
          kbates
          0
          6
          63

        • Competitor's 'hidden' links harming my site?
          Sandy_M
          Sandy_M
          0
          5
          213

        • How do I cure 'overly dynamic' url's on an e-commerce website?
          CherryK
          CherryK
          0
          3
          430

        • Number ID's in URL's
          simmo235
          simmo235
          0
          3
          174

        • Different pages for OS's vs 1 Page with Dynamic Content (user agent), what's the right approach?
          JoeLin
          JoeLin
          0
          3
          261

        • How to avoid product's lists from making your site's content duplicated?
          matbennett
          matbennett
          0
          2
          491

        • Excessive Internal Linking...But it's a product page. What to do?
          firstconversion
          firstconversion
          0
          5
          699

        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