code: public function isWithin($url)
      {
          if ($this->isIn($this->root, $url->getBasePath())) {
              return true;
          }
          if ($this->isIn($this->root, $url->getBasePath() . $url->getPage() . '/')) {
              return true;
          }
  
          return false;
      }
docs: Test to see if the URL is within the directory tree of the realm.
  
  @param SimpleUrl $url    URL to test.
  
  @return bool          True if subpath.