为my sitemap.xml重写rule.htaccess

为my sitemap.xml重写rule.htaccess,.htaccess,mod-rewrite,url-rewriting,url-rewrite-module,.htaccess,Mod Rewrite,Url Rewriting,Url Rewrite Module,我安装了一个内容管理系统插件,该插件为Google提供了一个站点地图。我如何才能将重写规则添加到我的.htaccess中,从而使该站点地图在下可用?您可以将此代码添加到您的htaccess文件中(该文件必须位于根文件夹中) 确保启用了mod_rewrite RewriteEngine On RewriteRule ^sitemap\.xml$ /index.php?eID=dd_googlesitemap [L]

我安装了一个内容管理系统插件,该插件为Google提供了一个站点地图。我如何才能将重写规则添加到我的.htaccess中,从而使该站点地图在下可用?

您可以将此代码添加到您的htaccess文件中(该文件必须位于根文件夹中)

确保启用了
mod_rewrite

RewriteEngine On
RewriteRule ^sitemap\.xml$ /index.php?eID=dd_googlesitemap [L]