Dynamic Redirect that excludes 404s
-
Hi,
I’m building a site that needs to redirect all single posts from a custom post type to a page as a pass through.
I’ve set this up using a wildcard “/work/(.*)” to redirect to “/work” however if I type in random characters these also get redirected. Ideally I need valid pages to redirect and invalid ones to a 404 page.
How do I dynamically add a redirect for all single posts to a page that doesn’t include invalid pages such as “/work/dsfdasf” as well?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Dynamic Redirect that excludes 404s’ is closed to new replies.