Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Classes/Controller/SitemapController.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public function renderXMLSitemap($content, $configuration) {
// creating the XML output
foreach ($this->usedUrls as $urlData) {
// skip pages that are not on the same domain
if (stripos($urlData['url'], $this->currentHostName) === FALSE) {
if (stripos($urlData['url'], $this->currentHostName) === FALSE && !$this->sitemapConfiguration['ignoreSameDomainCheck']) {
continue;
}
if ($urlData['lastmod']) {
Expand Down
3 changes: 3 additions & 0 deletions Configuration/TypoScript/constants.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,7 @@ plugin.tx_seo {

# cat=plugin.seo/string; type=boolean; label= Enable the canonical tag: Adds a new tag for showing the unique URL for this page.
enableCanonicalTag = 1

# cat=plugin.seo/string; type=boolean; label= Ignore same domain check for sitemap.xml generator (can be used for sites that uses separate domains for localization).
ignoreSameDomainCheck = 0
}
1 change: 1 addition & 0 deletions Configuration/TypoScript/setup.txt
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,5 @@ tx_seo_xmlsitemaps {
10 = USER
10.userFunc = B13\SeoBasics\Controller\SitemapController->renderXMLSitemap
10.resolveMainShortcut = 1
10.ignoreSameDomainCheck = {$plugin.tx_seo.ignoreSameDomainCheck}
}