private function SiteFolderCondition(Site $site)
    {
        $siteUrl = $site->GetUrl();       
        $siteFolder = parse_url($siteUrl, PHP_URL_PATH);
        if ($siteFolder != '' && $siteFolder != '/')
        {
            return new RewriteCondition(new Variable(ServerVariable::RequestUri()), '^' . rtrim($siteFolder, '/') . '/');
        }
        else
        {
            return new RewriteCondition(new Variable(ServerVariable::RequestUri()), '^/');
        } 
        return null;
    }
private function SiteFolderCondition(Site $site)
    {
        $siteUrl = $site->GetUrl();       
        $siteFolder = parse_url($siteUrl, PHP_URL_PATH);
        if ($siteFolder != '' && $siteFolder != '/')
        {
            return new RewriteCondition(new Variable(ServerVariable::RequestUri()), '^' . rtrim($siteFolder, '/') . '/');
        }
        else
        {
            return new RewriteCondition(new Variable(ServerVariable::RequestUri()), '^/');
        } 
        return null;
    }
private function SiteFolderCondition ( Site $ site ) { $ siteUrl = $ site -> GetUrl ( ) ; $ siteFolder = parse_url ( $ siteUrl , PHP_URL_PATH ) ; if ( $ siteFolder != '' && $ siteFolder != '/' ) { return new RewriteCondition ( new Variable ( ServerVariable :: RequestUri ( ) ) , '^' . rtrim ( $ siteFolder , '/' ) . '/' ) ; } else { return new RewriteCondition ( new Variable ( ServerVariable :: RequestUri ( ) ) , '^/' ) ; } return null ; }
Gets the rewrite condition for the site specific folder; if present
@param Site $site
@return RewriteCondition
Gets the rewrite condition for the site specific folder ; if present