Direct access to pages in single_pages directory
PermalinkAn example;
Concrete5 is set up with a single page called MyAdmin. This is located in the singe_pages folder as MyAdmin.php. Logging in to Concrete5 as a user who has permission to this page shows the page with the URLwww.www.mywebsite.com/Concrete5/MyAdmin.... Logging out and navigating to that page takes me back to the login page.
Now, navigating to a page that doesn't exist,www.www.mywebsite.com/Concrete5/single_pages/WrongPage.php... for example, brings up a Concrete5 "page not found" message. However, navigating to page that does exist at the URL brings the page up with no issues and no errors. I need to stop this from happening!
CHMOD 700 to the entire contents of doesn't seem to work. I've not tried using a .htaccess file yet although I'm wary that doing so would also prevent Concrete5 from also accessing the page.
How can I rectify this?
Thank you in advance.

I've added the line below to the top of the page code and it works exactly as required. Issue fixed! :-D