【发布时间】:2014-07-22 00:27:49
【问题描述】:
我找到了许多 301 htaccess 重定向示例,但我需要一些特定的东西,但不知道如何构建确切的重定向规则...我要构建这个的站点是一个 wordpress 站点。
示例:
http://www.example.com/article/some-article-01.html
http://www.example.com/article/data-analysis.html
http://www.example.com/article/another-page.html
重定向到:
http://www.example.com/article/some-article-01/
http://www.example.com/article/data-analysis/
http://www.example.com/article/another-page/
正在寻找一种适用于 wordpress 的 htaccess 规则...
指向相关数据的指针将被愉快地接受。似乎找不到正确的搜索查询。示例代码当然会容易得多。
【问题讨论】:
标签: regex apache .htaccess mod-rewrite redirect