Bulk 301 redirect for custom post type

Question

I’ve amended the URLs for my custom post type from:

url.com/jobs/job-name to url.com/jobs/job-location/job-name

Problem is, because this isn’t a standard rewrite wordpress doesn’t do the 301 redirecting for you.

Does anyone know how I could do a 301 redirect for all custom posts to the new URL bearing in mind that job-location would be different depending on the post?

Thanks!

0
Michael 2 years 2020-12-28T01:10:31-05:00 0 Answers 3 views 0

Leave an answer

Browse
Browse