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
-
Content hubs vs blog
Hey all! I work for a large healthcare company. We're in the planning stages of redesigning our website, and the question came up of whether we needed to continue with the patient-focused blog at all when we could simply incorporate the blog articles into the service lines they best fit with (i.e. an article about feeding babies solid good would go under the pediatrics section of the website instead of the pediatrics section of the blog).Anybody have an opinion/insight on whether the articles would get better rankings being dispersed to the services sections of the website instead of concentrated on a blog? Or would good internal linking make the whole question moot?Thanks!
On-Page Optimization | | MartyIHC1 -
Responsive site.com vs m.site.com
Hi All, My client's website have two urls like: site.com/a.html and **m.site.com/a.html. ** Will it hurt google rankings for this website because there are version of a website? Please help!
On-Page Optimization | | binhlai1 -
How to redirect subdomain to new blog directory
I have moved my wordpress blog from a subdomain to a subdirectory /blog/ on my site. What is the best way to setup a redirect from the subdomain to the new /blog/ directory? Or should I just delete the subdomain blog and wait for google to index it on /blog/. I need to do one or the other so as not to run into duplicate content issues.
On-Page Optimization | | SamCUK0 -
Redirecting to homepage ok?
I deleted a bunch of category pages (renamed mostly actually and thought they'd be auto redirected like my blog posts are but they weren't) so I used a plugin that reroutes any 404 page to the homepage. Is that the best thing to do in this situation? Google Webmasters says there are about 84 404-errors and this should get rid of those right? Is there anything SEO BAD about doing it this way?
On-Page Optimization | | dealblogger0 -
Should I delete my old blog now that it has been transfered?
I just transfered my free wordpress.com blog to my main business site and I did not know if I should delete my old blog or is it a big issue to have the same content on both sites. I will be adding to my biz site from now on.
On-Page Optimization | | greenjoe0 -
Best way to do a 301 redirect when the incorrect page has rank and FB likes
Due to a site structural problem with our CMS we have alot of duplicate content pages (1 page, with multiple urls). We are in the process of setting up 301 redirects to correct the problem. Meanwhile; one of the pages with the "incorrect" URL happens to be the page google favors and also has about 100 FB "likes". The question is: Are we better off keeping the "incorrect" URL for that particular page and redirect the other url to it? Both have a page rank of 3. Thanks
On-Page Optimization | | foodsleuth0 -
Which is better, a directory 301 redirect or each page in the directory?
A customer of mine has a site with lots of articles and they are all quite spammy. They have not been affected by penguin yet so they asked what to do. I suggested losing the articles directory and 301 redirect to either the home page or another important page. Would a 301 redirect on the entire directory to a single page be the way to go or add redirects from each page within the directory and spread out redirects to various pages in website? Or do you have a better suggestion?
On-Page Optimization | | anthonytjm0 -
How do I check how a competitor ranks in the UK vs. US?
In building my strategy I want to check how well my competitors rank in country specific searches, for example in Canada or the UK vs. the US. Can someone help me by pointing me in the right direction? Thanks
On-Page Optimization | | jclubb0