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. Mod rewrite question

    Mod rewrite question

    Technical SEO Issues
    4 2 279
    • 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.
    • ahirai
      ahirai last edited by

      Sorry in advance if this isn't the best place to ask this question.

      Google Webmaster Tools has recently identified a ton of "Not Found" pages, which are actual pages with some digits appended at the end.

      For example, suppose an actual page on my blog is:

      (A) http://www.example.com/blog/2012/09/my-post-title/

      This page works just fine.

      However, GWT has identified the following page as a "not found" page:

      (B) http://www.example.com/blog/2012/09/my-post-title/9157586677/1846732913010

      This appears to be happening to hundreds of posts on my site. In each case, the "9157586677" portion of the URL is identical, but the remaining 13 digits change from page to page.

      I haven't been able to determine exactly what is causing this to happen - it's probably a social plug-in for Wordpress, or perhaps Disqus, but I'm not sure which one. I'll go through a process of elimination to narrow it down over the coming week.

      As a quick fix, I'd like to create a ModRewrite rule so that requests for (B) get 301 redirected to (A). Since there are hundreds of posts, I need to do this in a way that works regardless of what's in the "/2012/09/my-post-title/" part of the URL.

      Unfortunately, mod-rewrite is outside of my area of expertise. Can somebody please suggest how I can handle this? Thanks in advance.

      PS - As for tracking down the cause, I've looked at the source of the pages in the "Linked From" area of GWT and the Not Found link is nowhere to be found. That is why I assume the bad link is being generated by some javascript that is a part of one of my plug-ins.

      Update: It seems like Disqus is the source of these phantom links. There's considerable discussion here. I'll continue searching for a long-term solution. Meanwhile, I'd still appreciate help with the mod-rewrite question above. Thanks again.

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

        Hi ahirai,

        I was gonna say you should check the linked from tab in GWT but since you actually did it, for me its pretty sure that a plugin that drives content is creating this issue from scratch.

        Since i´m neither an apache expert, i can´t give you a method to do the dirty work, but i can tell you the problem is created by some 3rd party plugin driving content of site.

        Please, post your advances in the topic!

        Good luck!!

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

          I hadnt seen the update over Disquss at the end of the post.

          Please, post all your advances on this topic Ahirai

          Best regards!

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

            I've found a solution and am posting it here in case anybody else is having the same problem:

            RewriteRule ^([0-9]{4})/([0-9]{2})/([^/]+)/[0-9]+ /blog/$1/$2/$3/ [L,R=301]

            1 Reply Last reply Reply Quote 1
            • 1 / 1
            • First post
              Last post
            • When to use mod rewrite / canonical / 301 redirect
              Matt-Williamson
              Matt-Williamson
              0
              2
              149

            • Canonical Question
              SebastianCowie
              SebastianCowie
              0
              5
              286

            • Mod Rewrite / .htaccess avoid duplicate content
              blacey
              blacey
              0
              8
              4.0k

            • Mod Rewrite question to prevent duplicate content
              kat2
              kat2
              0
              5
              635

            • How to properly abandon mod rewrite?
              Nick_Ker
              Nick_Ker
              0
              2
              649

            • URL rewrite question
              danielmckay7
              danielmckay7
              0
              6
              890

            • Mod Rewrite Help
              DanHill
              DanHill
              0
              3
              879

            • URL Rewrite
              Gaveltek-173238
              Gaveltek-173238
              0
              13
              1.9k

            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