【问题标题】:Rewrite rule .htaccess for my sitemap.xml为我的 sitemap.xml 重写规则 .htaccess
【发布时间】:2014-11-22 08:18:37
【问题描述】:

我安装了一个内容管理系统插件,它在http://www.domain.com/index.php?eID=dd_googlesitemap 下为 Google 提供站点地图我如何向我的 .htaccess 添加重写规则,以使此站点地图在 http://www.domain.com/sitemap.xml 下可用?

【问题讨论】:

    标签: .htaccess mod-rewrite url-rewriting url-rewrite-module


    【解决方案1】:

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

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

    确保mod_rewrite 已启用

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-12-17
      • 2011-11-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多