Routing: How to prevent user from directly access content page without url rewrite?

routing address: /resources
actual file location: /include/resources.php

How to prevent user from directly access http://domain.com/include/resources.php and only allow access via http://domain.com/resources ?

Community Page
Last updated: