Commit 8f4cbe46 authored by Christian Knauf's avatar Christian Knauf
Browse files

Add sitemap.xml

[BUGFIX] Add sitemap.xml -> yoast-snippetpreview
parent 64c869ce
Pipeline #9205 passed with stages
in 4 minutes and 8 seconds
......@@ -129,15 +129,16 @@ routeEnhancers:
type: StaticRangeMapper
start: '1'
end: '100'
PageTypeSuffix:
type: PageType
map:
sitemap.xml: 1533906435
yoast-snippetpreview.json: 1480321830
routes:
-
route: robots.txt
type: staticText
content: "User-agent: *\r\nAllow: /\r\n\r\n# folders\r\nDisallow: /typo3/\r\nDisallow: /typo3conf/\r\nAllow: /typo3conf/ext/\r\nAllow: /typo3temp/\r\n\r\n# parameters\r\nDisallow: /*?id=* # non speaking URLs\r\nDisallow: /*cHash # no cHash\r\nDisallow: /*tx_powermail_pi1 # no powermail thanks pages\r\nDisallow: /*tx_form_formframework # no forms\r\n\r\n# sitemap\r\nSitemap: https://typo3.org/?type=1533906435\r\n"
-
route: sitemap.xml
type: uri
source: 'https://typo3.org/?type=1533906435'
solr_enabled_read: true
solr_host_read: solr
solr_path_read: /solr/
......
@import 'EXT:seo/Configuration/TypoScript/XmlSitemap'
@import 'EXT:news/Configuration/TypoScript/Sitemap'
plugin.tx_seo {
config {
xmlSitemap {
sitemaps {
pages {
config {
excludedDoktypes = 3, 4, 5, 6, 7, 199, 254, 255
additionalWhere = AND (no_index = 0)
}
}
news {
provider = TYPO3\CMS\Seo\XmlSitemap\RecordsXmlSitemapDataProvider
config {
table = tx_news_domain_model_news
additionalWhere =
sortField = sorting
lastModifiedField = tstamp
pid = 179
recursive = 2
url {
pageId = 185
fieldToParameterMap {
uid = tx_news_pi1[news]
}
additionalGetParameters {
tx_news_pi1.controller = News
tx_news_pi1.action = detail
}
useCacheHash = 1
}
}
}
events {
provider = TYPO3\CMS\Seo\XmlSitemap\RecordsXmlSitemapDataProvider
config {
table = tx_sfeventmgt_domain_model_event
sortField = tstamp
lastModifiedField = tstamp
pid = 180,43,461
recursive = 2
url {
pageId = 230
fieldToParameterMap {
uid = tx_sfeventmgt_pievent[event]
}
additionalGetParameters {
tx_sfeventmgt_pievent.controller = Event
tx_sfeventmgt_pievent.action = detail
}
useCacheHash = 1
}
}
}
}
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment