I’m moving from an old CMS to WordPress.
The old articles are saved as posts and the new WordPress permalink is %post-id%.
The old URL slug is unique and saved as a custom field for each post; the custom field name is “old_url”.
- Post ID: 123
- Custom field name: old_url
- Custom field value: /servlet/Satellite?c=ArticleA_C&cid=1189064956899
I want to use the value of
old_url to redirect from the old link to the new link.
So, if someone requested “domain.com/servlet/Satellite?c=ArticleA_C&cid=1189064956899”, he will be redirected to the new permalink and not receive a 404 error.