Custom posts redirecting to the home page
-
We are using the plugin ‘Custom Permalinks’ to overwrite the deafult url of some Custom Post Types we have registered.
e.g. we have a registered a custom post type called region. We then use the ‘Custom Permalinks’ plugin to change the url from
….com/region/post-name/
to
….com/post-name/This works correctly, initially but shortly afterwards, these posts then 301 redirect to the homepage.
If we click refresh the permalinks and refresh our hosts cache (Flywheel – NGINX), then the redirects work correctly again for a short period before redirecting back to the homepage again.
Talking with our hosts, we have found that disabling the Yoast SEO plugin, appears to stop the issue
If anyone could help shed any light on how to overcome this, it would be much appreciated.
Thanks,
Ben
- The topic ‘Custom posts redirecting to the home page’ is closed to new replies.