Ignore subdirectories after page /page and /page/sub should be same
-
I have in my theme a page called user.
In wp-content/themes/THEME, there is page-user.php
https://example.com/user resolves ok to page-user.php
https://example.com/user/add does not, it goes to 404.
Is there a way to catch all calls to a “subdirectoy” that has the same name as a page– so that https://example.com/user/ANYTHING/AT/ALL always goes to page-user.php?
THanks.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Ignore subdirectories after page /page and /page/sub should be same’ is closed to new replies.