Disable redirect for certain URL
-
Hi there,
we have a custom page setup for our styling in our projects:add_filter('init', 'Flynt\BaseStyle\registerRewriteRule'); const ROUTENAME = 'BaseStyle'; function registerRewriteRule() { $routeName = ROUTENAME; add_rewrite_rule("{$routeName}/?$", "index.php?{$routeName}", "top"); add_rewrite_tag("%{$routeName}%", "([^&]+)"); }
How can I exclude that page/post from being redirected to the home page?
Basically inpublic function redirect_public_pages()
it gets classed as a “blog_page” and therefore it is redirected.
Is there a way to prevent redirection of that certain URL/page?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Disable redirect for certain URL’ is closed to new replies.