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. How to best remove old pages for SEO

    How to best remove old pages for SEO

    Technical SEO Issues
    7 3 6.1k
    • 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.
    • JamieHibbert
      JamieHibbert last edited by

      I run an accommodation web site, each listing has its own page. When a property is removed what is the best way to handle this for SEO because the URL will no longer be valid and there will be a blank page.

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

        It would be best to make it a 404 or you could consider still having the property listed but mentioning it's no longer available and displaying similar / nearby / related properties on that page as long as it makes sense from both the usability / TOS and other business issues.

        Think from a user's perspective. Let's say I took a URL of a property from your website and linked to it from my blog post where I am talking about my vacation or if I emailed it to friends/family. If that property is no longer available, what's a good user experience for people clicking on that link from my website or from my email. In my opinion, it might be a good idea to have a user friendly message saying that property is no longer available and displaying other related properties.

        I hope that helps and makes sense.

        JamieHibbert 1 Reply Last reply Reply Quote 0
        • JamieHibbert
          JamieHibbert @NakulGoyal last edited by

          I agree with the idea of the message, best user experience. Sadly people do not want their property showing, often because they change from a business to a residential property.

          How do I show the page is a 404, is that a code snippet in the header or similar?

          NakulGoyal JamieHibbert 3 Replies Last reply Reply Quote 0
          • NakulGoyal
            NakulGoyal @JamieHibbert last edited by

            What platform is your website ? You could also send me the URL via PM or post here and I can check.

            1 Reply Last reply Reply Quote 0
            • JamieHibbert
              JamieHibbert @JamieHibbert last edited by

              A home bodge job... url www.visitdevonandcornwall.com

              1 Reply Last reply Reply Quote 0
              • NakulGoyal
                NakulGoyal @JamieHibbert last edited by

                It looks like your server is Linux possibly..Apache..running PHP.

                If that's the case, you can build a page that you'd like to display for all pages that do not exist and upload it on the server as 404.php or whatever you might want to call it.

                Then, add the following line in your .htaccess file.

                ErrorDocument 404 /404.php

                You are all set.

                To me i looks like you are already set or doing this in some fashion. I checked to see if I visit http://www.visitdevonandcornwall.com/test and see what happens.

                It gives me a friendly 404 and the HTTP Header is correct.

                HTTP/1.1 404 Not Found => Server => cloudflare-nginx Date => Fri, 11 May 2012 17:17:51 GMT Content-Type => text/html Connection => close X-Powered-By => PHP/5.3.6 Expires => Thu, 19 Nov 1981 08:52:00 GMT Cache-Control => no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma => no-cache Set-Cookie => __cfduid=d1b9e2169ed78a6697f752eef1c0a5ee01336756670; expires=Mon, 23-Dec-2019 23:50:00 GMT; path=/; domain=.www.visitdevonandcornwall.com

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

                  Stephanie Chang posted on just this subject last month on the blog at http://www.seomoz.org/blog/how-should-you-handle-expired-content. Her post may help you with some ideas -- it was actually because of all of these types of questions in Q&A that she wrote the post.

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post
                  • What's the best way to test Angular JS heavy page for SEO?
                    MikeTek
                    MikeTek
                    0
                    2
                    210

                  • How to Remove Web Cache snapshot page & other language SEO Title in Google Search Engine?
                    BlueprintMarketing
                    BlueprintMarketing
                    0
                    4
                    156

                  • Panda Cleanup - Removing Old Blog Posts, Let Them 404 or 301 to Main Blog Page?
                    eBoost-Consulting
                    eBoost-Consulting
                    0
                    3
                    458

                  • Test site got indexed in Google - What's the best way of getting the pages removed from the SERP's?
                    Yarden_Uitvaartorganisatie
                    Yarden_Uitvaartorganisatie
                    0
                    5
                    1.3k

                  • Website SEO Product Pages - Condense Product Pages
                    Ed-iOVA
                    Ed-iOVA
                    0
                    4
                    144

                  • If the order of products on a page changes each time the page is loaded, does this have a negative effect on the SEO of those pages?
                    Kurt_Steinbrueck
                    Kurt_Steinbrueck
                    2
                    4
                    119

                  • Is it good to remove page extensions like ".php" or ".htm" in the end of URL as SEO prospects?
                    BlueprintMarketing
                    BlueprintMarketing
                    0
                    8
                    12.9k

                  • Off-page SEO and on-page SEO improvements
                    josh-riley
                    josh-riley
                    0
                    5
                    918

                  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