Is there a way to create multiple 301 redirects without using page rules?

Hello:

Is there a way in Cloudflare to create multiple 301 redirects to forward multiple articles to new diestinations without using page rules?

Each article from a wordpress blog has their own unique names and must be forwarded to a new destination that will use the same domain name and article name, but different path.

example:
www.myblog.com/article1 forwards to www.myblog.com/articles/article1
www.myblog.com/article2 forwards to www.myblog.com/articles/article2
www.myblog.com/article3 forwards to www.myblog.com/articles/article3
www.myblog.com/article-etc. forwards to www.myblog.com/articles/article-etc.

etc.

Please advise

You can write a Worker based upon this script:

https://developers.cloudflare.com/workers/templates/pages/bulk_redirects/

This topic was automatically closed after 14 days. New replies are no longer allowed.