Reimplement URL_PATTERN to general page validator

For more details please see https://github.com/romikoops/howitzer/issues/68 issue.