Redirecting deleted posts 301 vs 302
-
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?
-
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.
-
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.
-
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.
-
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.
-
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.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Separate URL vs iFrame
Hi Everyone, I'm not a designer/developer and am an not extremely knowledgeable in SEO, but I'll try to be as clear as I can. One of the designers here is creating a recipe section on our website. He created it so that it's a container (or iFrame?) on the page. Basically, no matter what you click (different sections and recipes) the URL stays the same. I was told to find out from an SEO perspective if it's better to do things this way or have a separate URL for each section and recipe. It's been brought up that from a social/sharing standpoint separate URLs would be better so people can send a link directly to the specific recipe they want to share. Any thoughts/comments are appreciated! Thanks for the help!
On-Page Optimization | | AliMac260 -
301 Redirect or landing page
Hi everyone. I'm currently doing some SEO for a client, at the moment he has some landing pages which are categorised, but the category is set as a 302 redirect. I have a dilemma whether to 301 redirect to the landing page or make a page for each category. The link structure is as follows - http://examplesite.co.uk/products/fire/company-1/product/ so currently this is set as a 302 redirect - http://examplesite.co.uk/products/fire/company-1/ Do I make this page a category page and link the page to the children with some on-page optimisation or 301 redirect it?
On-Page Optimization | | Unbranded_Lee0 -
Redirect Code Needed.
Hi, Please help me redirect the following pages in htaccess. https://www.mydomain.com/FolderA/FolderB/number-of-pages.html to **https://www.mydomain.com/FolderA/FolderC/FolderB/number-of-pages.html ** I want to redirect atleast 50 pages like this. Please help Thanks
On-Page Optimization | | Kashif-Amin0 -
"Heading 1" vs. "Title" Style for SEO
In Word, you can specify "Heading 1" text which Google presumably treats the same as an HTML tag. Is there any benefit in using the "Title" style? Is it the equivalent of a web page's title?
On-Page Optimization | | BlueLinkERP0 -
Can I use the same text in my meta description as I put in my post excerpt?
Hi, I'm just trying to understand the right way to optimise my blog posts and this is likely a dumb question... but to what extent should the text in my meta description differ from the text in my post excerpts? cheers, Andrew
On-Page Optimization | | seowhiskey0 -
Installing a site on top level domain directory VS deeper directory
How important it is for seo to install a site on a top level directory vs deeper directory? example: www.mysite.com VS www.mysite.com/catalog many eCommerce scripts such as oscommerce and cre loaded will install by default to /catalog and that's what I've been doing for most of my customer. does it mean it will be harder for them to get good seo results? Thanks in advance for the input...
On-Page Optimization | | zigi0 -
Absolute vs Relative URLs
What are the pros and cons of these two types of URLs and what type of weight does this hold. It doesn't seem to be a big issue in regards to ranking. Any qualified clarity would help.
On-Page Optimization | | Romancing0 -
Keyword cannabilization ... I just cant face 301'ing good, well aged pages
Hi Mozzers Ive read a little about your views on cannabilization and would like to run my situation by you. I have 2 pages lets say (a) and (b) that rank ok for a main keyword. However (a) desite being nice and old is not ageing well and is starting to slip a little - its getting harder to spread the link juice so Ive been thinking should I ditch page (a) and focus solely on page (b) for this keyword. Page (b) seems to be getting better serp value right now. What I find hard is that page (a) has been around a while (6 years) and I cant bring myself to 301 it assuming thats what you would normally do to avoid cannabilization. But at the end of the day its a business page and if its failing - yet could inject even more bounce into page (b) it must be worth considering. What is the best way forward here..? Im not sure how quick any transition of link juice would take ? Also what to do with the unique content on page (a)? Seems such a shame to just ditch it. Cheers fella's Morch
On-Page Optimization | | Morch0