Reputation: 240
I migrating site now to wp. Now it has posts with url's like
example.com/module/title/some_digits/date/some_more_digits.
In wp it can be found at
example.com/?p=number
There are lot of external links directing to this posts, so if i will simply import all data in wp they will be useless. I import posts from dump using wp_insert_post(), there is about 1k of them. May i somehow programmatically give a non-default url to post, to save old url style and prevent losing links?
Upvotes: 0
Views: 95
Reputation: 387
You can use .htaccess to redirect on new page or you can use this plugin for create custom url.
Upvotes: 1