网站管理员工具中的 opencart 3 站点地图提交问题

opencart 3 sitemap submitting issue in webmaster tool

我在 google 网站管理员工具上提交我的站点地图时遇到问题,我尝试了两种方式,提交 sitename.com/sitemap.xml 以及从 extensions->Feeds->Google Sitemap->Enable 启用扩展并共享数据 Feed Url 开始形式

index.php?route=extension/feed/google_sitemap

但是 sitename.com/sitemap.xml 网站管理员工具显示错误

Sitemap can be read, but has errors General HTTP error 1 instance We encountered an error while trying to access your Sitemap. Please ensure your Sitemap follows our guidelines and can be accessed at the location you provided and then resubmit. Examples HTTP Error: 404

Data Feed Url 网站站长工具显示错误

Sitemap could not be read

我正在使用 opencart 3.x

经过长时间的研究,我找到了解决方案,这个问题是由 .htaccess 文件引起的

我刚刚在 .htaccess 文件中评论 RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L] 这行代码并在线生成 sitemap.xml 并将其粘贴到网站的根文件夹中,然后重新提交站点地图。