404 Error with Custom Structure for Posts in permalink to match blog slug
-
On WordPress -> Permalink Settings, I am having some issues trying to set Custom Structure to set slug for posts to match blog structure.
For example, when I set Custom Structure to blog/%postname%/this results in the posts not being found. The original link domain.com/%postname%/ obviously no longer works and displays 404 page not found, but the problem is the same for the new location domain.com/blog/%postname%/
However, I have found that if I set Custom Structure for posts to another slug that does not match blog path like /articles/%postname%/ then it works fine. For instance -> domain.com/articles/%postname%/
So as a result, I then altered the blog page to suit the new articles slug and again, a page not found on the post page. If you view the main blog, the posts are listed as normal, but when you click to view the individual post, it’s page not found on either URL (old or new).
Is this achievable and if so, how?
Ultimately, all I want is posts to be viewable under the custom structure that matches the blog slug path. Such as /blog/%postname%/ or /articles/%postname%/
Thanks,
- The topic ‘404 Error with Custom Structure for Posts in permalink to match blog slug’ is closed to new replies.