0

On my bolt instance, I've overriden entries' routing to remove content-type from uri, ie:

http://example.com/my-first-entry
http://example.com/another-entry

I've also installed the sitemap extension, but as it defines routing like:

http://example.com/sitemap
http://example.com/sitemap.xml

I can't access my sitemap as my entries routing is the first one matched.

I tried to redefine a routing for sitemap before entries but the extension can't be called statically. I also tried to define a exclusion requirement in entries route but it doesn't work either.

Any idea ?

4

1 回答 1

0

在您app/config/routing.yml的站点中,您可以为站点地图本身创建特定路线:

# Sitemap
sitemap:
  path:               /sitemap.xml
  defaults:           { _controller: 'Bolt\Extension\Bolt\Sitemap\Extension::sitemap' }
于 2015-02-26T10:05:50.867 回答