Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有以下网址结构 www.sample.com/state-abbriviation(2 letters)/category/page.htm
我需要将其重定向到以下 URL www.sample.com/state-name/page/id。
我的问题是,如何用完整的州名(newmexico,texas)动态替换州缩写(nm,tx),但根据上述结构保留其余部分?
这与 htaccess 有点复杂。htaccess 如何知道页面和 id?
更好地将所有内容重定向到 index.php 并让 php 处理它......这也有点复杂:p