【问题标题】:How to remove the query string from the wordpress url using .htaccess rule如何使用 .htaccess 规则从 wordpress url 中删除查询字符串
【发布时间】:2014-10-08 01:46:51
【问题描述】:

我想从 wordpress url 中删除查询字符串。 网址: http://domain.com/our-homes-storey/?storey=40 我想从以下网址更改该网址: http://domain.com/our-homes-storey/locationname

【问题讨论】:

  • 只需检查您的永久链接设置。不需要 htaccess 规则
  • 在后端(管理面板)中,您必须在设置选项卡中设置永久链接以发布名称。它会自动为你创建.htaccess
  • 这不是页面网址。这是自定义网址。所以我想改变那个网址。

标签: php wordpress .htaccess url query-string


【解决方案1】:

转到 Wordpress 管理 - 设置 - 固定链接

并将您的永久链接设置为您想要的格式之一,或创建您自己的格式。

【讨论】:

猜你喜欢
  • 1970-01-01
  • 2021-08-18
  • 1970-01-01
  • 2017-06-01
  • 1970-01-01
  • 1970-01-01
  • 2012-12-13
  • 2016-10-25
相关资源
最近更新 更多