简体   繁体   English

一个Typo3实例中的Multdomain的Typo3多个站点地图

[英]Typo3 multiple sitemap for multdomain in one typo3 instance

In my typo3 instance i have a main domain which is already gone live and now i have multiple domains configured and for each domain i would like to generate a seperate sitemap.xml with links configured in each domains 在我的typo3实例中,我有一个已经投入使用的主域 ,现在我已经配置了多个域,并且我想为每个域生成一个单独的sitemap.xml,并在每个域中配置链接

My situation is Created Page Sitemap -> Created Menu and Sitemap from special menu (Working with Template )-> Created a template for my sitemap page and put content which generates the sitemap for me. 我的情况是“创建页面站点地图->创建菜单和特殊菜单中的站点地图(使用模板)->为我的站点地图页面创建一个模板,并放置为我生成站点地图的内容。

Problem is when i call subdomain/sitemap.xml it generates sitemap.xml with all the url in the main domain and sub domain 问题是,当我调用subdomain / sitemap.xml时,它会生成具有主域和子域中所有URL的sitemap.xml

from my research i found out some suggestions which are Can i solve it with real url or i must generate sitemap for each domain through my php script or can htaccess help in this case something like 从我的研究中,我发现了一些建议,这些建议可以用真实的网址解决,还是必须通过我的PHP脚本为每个域生成站点地图,或者在这种情况下htaccess可以提供帮助?

<url><loc>http://domain1/index.php?id=test</loc><lastmod>2015-11-26T15:45:37+01:00</lastmod><changefreq>weekly</changefreq><priority>0.5</priority></url> and so on <url><loc>http://domain1/index.php?id=test</loc><lastmod>2015-11-26T15:45:37+01:00</lastmod><changefreq>weekly</changefreq><priority>0.5</priority></url>

Thank you in advance for your help 预先感谢您的帮助

I know this is an older post. 我知道这是一个较旧的帖子。 But now you can easily set this up with the Extension cs_seo . 但是现在您可以使用扩展名cs_seo轻松地进行设置。 More information in german are available on this blog page . 此博客页面上可以找到更多德语信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM