我的目录如下:
http://www.mydomain.com/macbook-computer
http://www.mydomain.com/sony-computer
http://www.mydomain.com/lenovo-computer
如果用户键入以下计算机/macbook-computer,我想这样做:
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 文件中实现这一目标?