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. Intermediate & Advanced SEO
    4. What's the best way to deal with deleted .php files showing as 404s in WMT?

    What's the best way to deal with deleted .php files showing as 404s in WMT?

    Intermediate & Advanced SEO
    3 3 80
    • 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.
    • Blaze-Communication
      Blaze-Communication last edited by

      Disclaimer: I am not a developer

      During a recent site migration I have seen a bit of an increase in WMT of 404 errors on pages ending .php. Click on the link in WMT and it just shows as File Not Found - no 404 page. There are about 20 in total showing in webmaster tools and I want to advise the IT department what to do. What is the best way to deal with this for on-page best practice?

      Thanks

      1 Reply Last reply Reply Quote 0
      • Ray-pp
        Ray-pp last edited by

        File not found errors should show an http status code of 404. 404 pages will be naturally dropped by Google, I wouldn't worry about them.

        Make sure any of those 404'ed pages shouldn't have been 301'ed to a related page, to save any authority, if necessary.

        You can use the Moz toolbar to check the http status code too.

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

          Those pages will eventually drop out of Google's index, but if there are still sites (either pages within your own site or others) that are linking to any of those pages you will continue to see 404 error codes. I'm working on fixing the same issue on a site that I just started optimizing.

          The best thing you can do is a 301 redirect from each of the old .php pages to a similar, relevant page that currently exists on the site. This will fix the 404 codes and also pass any page authority from the old page to the new page that it is being directed to.

          Here's some helpful info from Moz on 301 redirects: http://moz.com/learn/seo/redirection

          Hope that helps!

          1 Reply Last reply Reply Quote 5
          • 1 / 1
          • First post
            Last post
          • What's the best way to use redirects on a massive site consolidation
            0
            1
            18

          • What's the best way to noindex pages but still keep backlinks equity?
            fablau
            fablau
            1
            5
            923

          • Will disallowing URL's in the robots.txt file stop those URL's being indexed by Google
            Martijn_Scheijbeler
            Martijn_Scheijbeler
            0
            11
            1.6k

          • Pagination and View All Pages Question. We currently don't have a canonical tag pointing to View all as I don't believe it's a good user experience so how best we deal with this.
            PeteC12
            PeteC12
            0
            3
            117

          • What's the best way to check Google search results for all pages NOT linking to a domain?
            Cyrus-Shepard
            Cyrus-Shepard
            0
            7
            163

          • What's the best way to redirect categories & paginated pages on a blog?
            NoisyLittleMonkey
            NoisyLittleMonkey
            0
            5
            226

          • When Google's WMT shows thousands of links from a single domain... Should they be removed?
            BeytzNet
            BeytzNet
            0
            6
            255

          • Best way to view Global Navigation bar from GoogleBot's perspective
            SShiyekar
            SShiyekar
            0
            3
            406

          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