I am working building a page within a template which will be a PHP script to do various URL-based things (basically an API).
Creating a page is simple enough, I created page-mypage.php
in the template folder, and created a page in the Wordpres front-end with the slug mypage
.
This all works, but I am running into this issue
<-- Works, loads the content of page-mypage.php
/ <-- 404 Error
Is there a way to capture all the URI after "/mypage" without generating a 404 error?