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. Spam pages being redirected to 404s but sill indexed

    Spam pages being redirected to 404s but sill indexed

    Technical SEO Issues
    4 4 41
    • 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.
    • SearchPros
      SearchPros last edited by

      Client had a website that was hacked about a year ago. Hackers went in and added a bunch of spam landing pages for various products. This was before the site had installed an SSL certificate.

      After the hack, the site was purged of the hacked pages and and SLL certificate was implemented. Part of that process involved setting up a rewrite that redirects http pages to the https versions.

      The trouble is that the spam pages are still being indexed by Google, even months later. If I do a site: search I still see all of those spam pages come up before most of the key "real" landing pages. The thing is, the listing on the SERP are to the http versions, so they're redirecting to the https version before serving a 404.

      Is there any way I can fix this without removing the rewrite rule?

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

        I'd recommend putting all of the urls to deindex into a sitemap, set LASTMOD date to something recent and submit for google to recrawl.

        If possible, set the status codes on those pages to 410 as well.

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

          You could also redirect those pages with a 301 directly to the 404 page. Or you could block those pages on robots.txt if you don't need them anymore.

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

            In addition to the above, you can request removal from Google's index in Search Console

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

            As noted, the removal is temporary (90 days), but if you've removed the pages and any links to them, then they won't reappear.

            What I would do is just check that your sitemap is up to date, and there aren't any legacy sitemaps hanging about that might still reference the pages, and also run a crawl of your site to ensure that there aren't any remaining links to these pages hanging about.

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            • Switched from and HTTPS to HTTP. My home page is facing a redirect issue from the http to https. Should I no index the HTTP or find the redirect and delete it? Thank you
              LandmarkRecovery2017
              LandmarkRecovery2017
              0
              3
              42

            • Does a no-indexed parent page impact its child pages?
              brianglassman
              brianglassman
              1
              2
              556

            • 404 Errors for Form Generated Pages - No index, no follow or 301 redirect
              Ric_McHale
              Ric_McHale
              0
              5
              549

            • Is it good to redirect million of pages on a single page?
              EricaMcGillivray
              EricaMcGillivray
              0
              8
              193

            • After I 301 redirect duplicate pages to my rel=canonical page, do I need to add any tags or code to the non canonical pages?
              Mike.Goracke
              Mike.Goracke
              0
              2
              125

            • Secondary Pages Indexed over Primary Page
              KeriMorgret
              KeriMorgret
              0
              5
              687

            • Does page speed affect what pages are in the index?
              Alex-Harford
              Alex-Harford
              0
              10
              835

            • Discrepency between # of pages and # of pages indexed
              Dan-Petrovic
              Dan-Petrovic
              0
              14
              990

            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