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. What if 404 Error not possible?

    What if 404 Error not possible?

    Technical SEO Issues
    6 2 242
    • 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.
    • te_c
      te_c last edited by

      Hi Everyone,

      I get an 404 error in my page if the URL is simply wrong, but for some parameters, like if a page has been deleted, or has expired, I get an error page indicating that the ID is wrong, but no 404 error.

      It is for me very difficult to program a function in php that solve the problem and modify the .htaccess with the mod_rewrite. I ask the developer of the system to give a look, but I am not sure if I will get an answer soon.

      I can control the content of the deleted/expired page, but the URL will be very similar to those that are ok (actually the url could has been fine, but now expired).

      Thinking of solutions I can set the expired/deleted pages as noindex, would it help to avoid duplicated title/description/content problem? If an user goes to i.e., mywebsite.com/1-article/details.html I can set the head section to noindex if it has expired. Would it be good enough?

      Other question, is it possible anyhow to set the pages as 404 without having to do it directly in the .htacess, so avoiding the mod_rewrite problems that I am having? Some magical tag in the head section of the page?

      Many thanks in advance for your help,

      Best Regards,

      Daniel

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

        Why are these parameters an issue for you?  Where are they getting linked from?  If it's from a high authority external site, it may make sense to 301 redirect them.  If they're just low quality sites, it's probably safe to ignore.

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

          Hi Again,

          @Takeshi Young: Thanks for your answer.

          I will try to explain what is happening a little better.

          We are using a CMS for Classifieds adds. The script is able to give "SEO Friendly" URLs, which are based in mode_rewrite. If a listing has an ID number, lets say "5", that listings url will look like this:

          http://mydomain.com/5-listingname/details.html

          After the listing expires, the URL will not be valid anymore, and if a user try to visit the listing, the script deliver a page with a message indicating that the lising is not active anylonger. The HTTP Code is 200 "ok". If the listing is deleted, then a user trying to visit the URL will get a similar message, also with a HTTP Code 200. It is a problem, because that page should return a 404 code, indicating the search engine that the page is gone.

          If a user try to visit an invalid page, like for example:

          http://mydomain.com/invalidpage.html

          then the system will deliver the 404 page that is set in the .htaccess file, but since the script recognises the numeric parameter in the deleted/inactive listing, it does not deliver the 404 error but a page with a message, and this page with a message is a soft 404 error, bad for SEO.

          It is out of my knowlage to repair the script in order to make it deliver the proper 404 header, but I can customize as much as I want the page indicating the error.

          Then I have two questions:

          1. If I set the soft 404 error page as noindex, will it be good enough as to not being affected by the problem?

          2. Is there any way of indicating the search engine that a page is 404, other than using the apache .htaccess? Like a tag in the head section? or any trick that would help me with this problem?

          Thanks in advance for your help,

          Daniel

          TakeshiYoung 1 Reply Last reply Reply Quote 0
          • TakeshiYoung
            TakeshiYoung @te_c last edited by

            Ok, sounds like a noindex,follow in the header is the best solution then.  That will keep the no-longer-existant pages from being indexed while still preserving any link juice the page may have acquired.

            te_c TakeshiYoung 2 Replies Last reply Reply Quote 0
            • te_c
              te_c @TakeshiYoung last edited by

              Hi Takeshi, thanks for the asnwer again.

              Would it prevent the deleted/expired pages to be shown as soft 404 in the Webmaster tools?

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

                The pages should not show up at all once they are de-indexed.

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                • 404 errors
                  ChrisAshton
                  ChrisAshton
                  0
                  8
                  235

                • 404 errors
                  MattRoney
                  MattRoney
                  0
                  4
                  286

                • Quest about 404 Errors
                  DelMarFans
                  DelMarFans
                  0
                  4
                  99

                • Remove 404 errors
                  sterls
                  sterls
                  0
                  3
                  335

                • 404 error
                  GeorgeAndrews
                  GeorgeAndrews
                  0
                  4
                  338

                • .htaccess and error 404
                  Probikeshop
                  Probikeshop
                  0
                  9
                  835

                • How to fix this 404 : Error ( 4XX (Client Error) )
                  igor.pinchevskiy
                  igor.pinchevskiy
                  0
                  3
                  1.2k

                • 404 errors and what to do
                  JamesNorquay
                  JamesNorquay
                  0
                  4
                  769

                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