Redirect to a custom page
-
Hi !
How can I, via the rewrite rules, redirect WordPress to a custom php file ?
What I’d like is that with this rewrite
'old/?$' => 'index.php?old=1'
when I type the URL https://example.com/old/, it loads the old.php file in my theme directory.
- The topic ‘Redirect to a custom page’ is closed to new replies.