【发布时间】:2011-07-02 19:21:49
【问题描述】:
我正在做一个 php 项目,但我不擅长 apache 中的 url_rewrite 模块,我想在这里学习如何实现这种 url 重写:
http://www.something.com/press/release/something_1/
01 将是 press_release 的 id,因此该部分将是动态部分。 something 也是动态的,但不包含在 query_string 部分中。此网址转换为以下网址:
http://www.something.com/press/release/press_detail.php?rid=1
谁能告诉我如何为这个转换编写 url_rewrite 规则。
【问题讨论】:
标签: php apache url-rewriting