大网数据广告活动
网站运营与故障问答

Is it bad practice to have "parent" sitemap name inconsistent with "child" sitemaps?

· 52CE 我爱测

My client is using the Fitpro Theme for WordPress which comes with predefined post types i.e fitness_class. However he wanted it changed to "classes" for the permalink and seo reasons. So I made the changes in the template files.…

问题原文

原帖链接 · CZorio · CC BY-SA 3.0

My client is using the Fitpro Theme for WordPress which comes with predefined post types i.e fitness_class. However he wanted it changed to "classes" for the permalink and seo reasons. So I made the changes in the template files.

However the sitemap still picks up the original "example.com/fitness_class-sitemap.xml" (which I have called the parent), and if I select it I can see the correctly named (children) sitemaps for "example.com/classes/exampleClass".

Is there anything wrong with this? Do I have to actually recreate the post type in the template files? "Fitness-Class" has absolutely no relevance to the site.

已采纳解答

原帖链接 · JCL1178 · CC BY-SA 3.0

So long as the entries in the sitemap point to the correct URLs and Google knows to access the sitemap file and is doing so, you're fine. The name of that file is not relevant to the SEO.

In other words, my sitemap could be www.mysite.com/f*ckyougoogle.xml and neither the spider nor the algorithm would care.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2016-05-13)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。