简体   繁体   English

之前是子域的域和子目录的站点地图

[英]Sitemaps for domain and subdirectory that was subdomain before

I have a Wordpress site (example.com) and subdomain (sub.example.com). 我有一个Wordpress网站(example.com)和子域(sub.example.com)。 They have separate Wordpress dashboards and were working like 2 separate websites. 他们有独立的Wordpress仪表板,并且像两个独立的网站一样工作。 Now we redesigned both websites and want to move subdomain to a subdirectory, so it will look like this: sub.example.com to example.com/sub, but they still have 2 separate Wordpress dashboards and work as 2 separate websites basically. 现在,我们重新设计了两个网站,并希望将子域移动到子目录,因此它看起来像是:sub.example.com到example.com/sub,但是它们仍然具有2个单独的Wordpress仪表板,并且基本上可以作为2个单独的网站工作。

My question is, what should I do with sitemaps? 我的问题是,我应该如何使用站点地图? As before we had 2 separate properties on Search Console with 2 different sitemaps submitted. 和以前一样,我们在Search Console上有2个单独的属性,并提交了2个不同的站点地图。 Now, if I understand right, subdirectory can't be considered as separate property on Search Console. 现在,如果我理解正确,则子目录不能视为Search Console上的单独属性。 So, what kind of sitemap should I create and how? 那么,我应该创建什么样的站点地图? Before we used All in One SEO plugin, now switched to Yoast, both plugins create sitemaps for you automatically. 在我们使用All in One SEO插件之前,现在切换到Yoast,这两个插件都会自动为您创建站点地图。

Would appreciate some input on this as I'm really confused and not developer or have technical SEO knowledge. 希望对此有所投入,因为我真的很困惑,没有开发人员或没有SEO技术知识。 Thanks! 谢谢!

sub-domain and folders in root directory almost acts same, if folder is having a separate cms. 如果文件夹具有单独的cms,则子目录和根目录中的文件夹的行为几乎相同。

for better understanding create a site map here, https://www.xml-sitemaps.com/ you will see only root urls here that means you have to place separate sitemaps in root folder as well as another folder. 为了更好地理解, 在此处https://www.xml-sitemaps.com/创建站点地图,您将仅在此处看到根URL,这意味着您必须将单独的站点地图放置在根文件夹以及另一个文件夹中。 (ie public_html and other folder) (即public_html和其他文件夹)

Give a proper path in google analytics dashboard eg http://yourdomain.com/sitemap.xml , http://yourdomain.com/folder/sitemap.xml 给在谷歌分析仪表盘如一条合适的路径http://yourdomain.com/sitemap.xmlhttp://yourdomain.com/folder/sitemap.xml

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

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