You can detect if the user is accessing a page that starts with a specific text using the URL_PATH and IFMATCH functions. An example of use is to redirect users to the home page if they directly access the /header/ and /footer/ pages. See comment to read more...