【发布时间】:2012-11-15 22:24:58
【问题描述】:
我目前有很多这样的网址:
http://www.domain.com/classes-dallas-tx.html
我需要将所有 URL 更改为以下内容:
http://www.domain.com/classes-in-dallas-tx.html
我只需要将“in”添加到现在没有它的每个 URL 中。
我可以为 .htaccess 文件使用一个查询来为我处理所有 URL 吗?我打算使用 301 重定向。
谢谢!
【问题讨论】:
-
提供更多关于您当前和将要更改的 URL 的示例。
-
嗨...除了城市和州之外,所有的 URL 都非常相似。例如,这是我想更改的当前 URL:domain.com/classes-dallas-tx.html、domain.com/classes-houston-tx.html、domain.com/classes-austin-tx.html。我想将它们更改为包含“in”:domain.com/classes-in-dallas-tx.html、domain.com/classes-in-houston-tx.html、domain.com/classes-in-austin-tx.html
标签: html .htaccess url redirect