src/Sulu/Bundle/WebsiteBundle/Controller/SitemapController.php
public function sitemapAction($alias)
    {
        if (!$this->get('sulu_website.sitemap.pool')->hasProvider($alias)) {
            return new Response(null, 404);
        }

        return $this->redirectToRoute('sulu_website.paginated_sitemap', ['alias' => $alias, 'page' => 1], 301);
    }
public function sitemapAction($alias)
    {
        if (!$this->get('sulu_website.sitemap.pool')->hasProvider($alias)) {
            return new Response(null, 404);
        }

        return $this->redirectToRoute('sulu_website.paginated_sitemap', ['alias' => $alias, 'page' => 1], 301);
    }
public function sitemapAction ( $ alias ) { if ( ! $ this -> get ( 'sulu_website.sitemap.pool' ) -> hasProvider ( $ alias ) ) { return new Response ( null , 404 ) ; } return $ this -> redirectToRoute ( 'sulu_website.paginated_sitemap' , [ 'alias' => $ alias , 'page' => 1 ] , 301 ) ; }
Redirect to the first page of a single sitemap provider.

@param string $alias

@return Response
Redirect to the first page of a single sitemap provider .