Changing permalink structure
-
Hello,
This has probably been asked somewhere else, and is not purely related to the Sparkling theme, but anyway…
If I change the permalink structure from “day and name” to “post name”, without changing any of the slugs themselves, it should some way be possible to automatically retry getting the page (at least up to 2 times) before giving the user the 404-page.
For example
Old URL
https://some.site.com/2017/02/23/that-really-interesting-post/Changed to (unless this change made a duplicate slug, which WP then adds a number to)
https://some.site.com/that-really-interesting-post/Before showing the user the 404-page, I want to try out these URLs in order:
https://some.site.com/2017/02/that-really-interesting-post/
https://some.site.com/that-really-interesting-post/Which file should be edited (preferrably in a child theme) to accomplish this ?
404.php is the wrong answer (as it only is used for the content of the 404-page).
- The topic ‘Changing permalink structure’ is closed to new replies.