我想如下重新寫一個網址...重新寫一個URL和存儲變量
例如輸入:
test.com/test/123/
test.com/test/123/456/
test.com/test/123/456/789
輸出:
test.com/test/
test.com/test/
test.com/test/
但我想將結尾作爲變量存儲在test.com/test/頁面上的模板中
e.g
variable from input 1 : /123/
variable from input 2 : /123/456/
variable from input 3 : /123/456/789
這可能嗎?
是的,這是可能的。你有什麼想要做的? – Neal 2013-04-23 14:15:17
是的,它肯定是可能 – MLeFevre 2013-04-23 14:16:09
看的.htaccess和mod_rewrite的 – Waygood 2013-04-23 14:17:35