【问题标题】:How to get rid of ?instance_id=xxx如何摆脱 ?instance_id=xxx
【发布时间】:2018-01-21 11:02:35
【问题描述】:

我在我的 wordpress 安装中使用来自 time.ly 的插件“All in one event calendar”。 以所有神圣的名义,我如何在事件结束时摆脱参数 ?instance_id=xxx ? 我的网址现在是这样的:https://mysite/event/myeventname/?instance_id=11 我要https://mysite/event/myeventname/11/

我在.htaccess 中尝试了所有我能想到的东西,但我完全没有想法!

【问题讨论】:

    标签: wordpress .htaccess url-rewriting


    【解决方案1】:

    好的!一个问题解决了!现在“漂亮链接”可以工作了!

    一个问题仍然存在......我的 wordpress 安装仍然链接到丑陋的 URL,并且它没有重定向。我该如何管理?

    将此添加到.htaccess 以使重写工作:

    <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^aktivitet/([^/]*)/([^/]*)/$ /index.php?ai1ec_event=$1&instance_id=$2 [L] </IfModule>

    【讨论】:

      猜你喜欢
      • 2019-05-03
      • 2014-01-28
      • 2013-10-31
      • 2020-10-19
      • 2019-12-01
      • 2013-01-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多