我的目錄是這樣的:重寫網址(URL路由)在.htaccess
http://www.mydomain.com/macbook-computer
http://www.mydomain.com/sony-computer
http://www.mydomain.com/lenovo-computer
我想要的是,如果用戶類型電腦/的MacBook電腦,如:
http://www.mydomain.com/computers/macbook-computer
我想顯示的頁面是:http://www.mydomain.com/macbook-computer
。
我的限制是:
1. User must type /computers (segment 1)
2. String coming from computers/ must end with "computer". (segment 2)
我怎樣才能讓這個實現我的.htaccess文件?