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. On-Page / Site Optimization
    4. Redirecting deleted posts 301 vs 302

    Redirecting deleted posts 301 vs 302

    On-Page / Site Optimization
    6 3 614
    • 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.
    • OVJ
      OVJ last edited by

      There is a category on WP where job ads are posted. when a post got deleted I would like to pass 404 error page and redirect all those deleted posts to specific category.

      I found WP plugin Auto Redirect 404 in 301 for Trashed Posts which does redirect deleted post to specific URL. But posts which are in the trash (not permanently deleted) will get 302 redirects. Those deleted permanently will get 301 redirects.

      Should I try editing this plugin or find another why? Maybe there is similar way with Redirection plugin?

       

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

        You need the 301 redirects.  302 redirects give me ulcers.  Is there any reason you are keeping things in the trash?  If you really need to save something for later, putting it in the trash is probably not your best option.  If you need to permanently delete them - then go ahead.  If you need the trash option for storage, then you probably need another plugin.

        OVJ 1 Reply Last reply Reply Quote 1
        • OVJ
          OVJ @CleverPhD last edited by

          I don't own that site but the owner of the site needs post to be kept in the trash because those posts often have to be restored.

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

            Then a 302 would be more appropriate as it is a temporary redirect.   It sounds like you need to work on some of your publishing operations/procedures.   Ideally, once you publish a post, it stays up etc.  You need to figure out how you can improve the process so that you minimize getting into the situation to start with.

            If you need to, I would delay the posting to start with if that would ensure that once it posts, it stays up on the site etc.

            Good luck.

            OVJ 1 Reply Last reply Reply Quote 1
            • OVJ
              OVJ @CleverPhD last edited by

              Actually those posts get permanently deleted after a while (1-5 months). But as I said before, some of them get deleted and then they need to be reposted again before they will get permanently deleted.

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

                It's probably easier to only use 301 redirects, especially if the majority of deleted posts are not going to be restored and are deleted permanently in a few months.

                1 Reply Last reply Reply Quote 1
                • 1 / 1
                • First post
                  Last post
                • 301 redirects
                  xinar
                  xinar
                  0
                  3
                  37

                • Site has 302 redirects for HTTP to HTTPS when it should be 301
                  Dalerio-Consulting
                  Dalerio-Consulting
                  1
                  2
                  55

                • One post on a keyword updated frequently vs. multiple posts
                  EricOliver
                  EricOliver
                  0
                  6
                  156

                • Can you 301 redirect to a page that has other pages 301 to it?
                  Cyrus-Shepard
                  Cyrus-Shepard
                  0
                  7
                  363

                • Dealing with thin content/95% duplicate content - canonical vs 301 vs noindex
                  MiriamEllis
                  MiriamEllis
                  0
                  4
                  612

                • Trying to maintain rank while switching back & forth from sitewide 301 to 302 redirects?
                  0
                  1
                  446

                • After Deletion of URL - Which is bettar 301 redirect or Error 404 Message.
                  NakulGoyal
                  NakulGoyal
                  0
                  6
                  394

                • Correct use of Canonical link vs 301 redirect
                  wedmonds
                  wedmonds
                  0
                  4
                  709

                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