add regex to allow for supfolders in path
full support for pages in subfolders