我要像重寫URL擴展
http://www.example.com/keyword-city.php
的URL改寫爲
http://www.example.com/keyword-city/
有任何簡單的解決方案,這樣做嗎?
編輯: 我需要一個動態的解決方案。例如:
http://www.example.com/keyword1-city.php
http://www.example.com/keyword2-city.php
http://www.example.com/keyword3-city.php
到
http://www.example.com/keyword1-city/
http://www.example.com/keyword2-city/
http://www.example.com/keyword3-city/
的OP需要mod-rewrite的解決方案,而不是PHP。 – Glorfindel