public function setSubdirectory($subdirectory)
    {
        $this->subdirectory = $subdirectory;
        $this->regexPattern = VariableUrl::createRegexMask($subdirectory . $this->pattern);
        return $this;
    }