Adding regular php file to site

How do I create a page(in wordpress theme folder) so that it can be accessed on my site as examplepage.com/somepost.php. I can see it as examplepage.com/wp-content/themes/mytheme/somepost.php but is there any way to cut off the path? Placing the file in the root folder is not an option.

Thanks in advance.

Read more here:: Adding regular php file to site

Leave a Reply

Your email address will not be published. Required fields are marked *