src/Rah/Sitemap.php
public function cleanUrlHandler(): void
    {
        global $pretext;

        $basename = explode('?', (string) $pretext['request_uri']);
        $basename = basename(array_shift($basename));

        if ($basename === 'robots.txt') {
            $this->sendRobots();
        }

        if ($basename === 'sitemap.xml' || $basename === 'sitemap.xml.gz') {
            $this->populateArticleFields()->sendSitemap();
        }
    }
public function cleanUrlHandler(): void
    {
        global $pretext;

        $basename = explode('?', (string) $pretext['request_uri']);
        $basename = basename(array_shift($basename));

        if ($basename === 'robots.txt') {
            $this->sendRobots();
        }

        if ($basename === 'sitemap.xml' || $basename === 'sitemap.xml.gz') {
            $this->populateArticleFields()->sendSitemap();
        }
    }
public function cleanUrlHandler ( ) : void { global $ pretext ; $ basename = explode ( '?' , ( string ) $ pretext [ 'request_uri' ] ) ; $ basename = basename ( array_shift ( $ basename ) ) ; if ( $ basename === 'robots.txt' ) { $ this -> sendRobots ( ) ; } if ( $ basename === 'sitemap.xml' || $ basename === 'sitemap.xml.gz' ) { $ this -> populateArticleFields ( ) -> sendSitemap ( ) ; } }
Handles routing clean URLs.
Handles routing clean URLs .