0

I have this url http://mysite.local/awesome-shirts.html

I want to route it to

http://mysite.local/category/shirts/awesome-shirts.html

The third segment of the url is dynamic.

Does anyone knows how to do this one? Thanks in advance

4

1 回答 1

0

我希望这可以帮助你 。

$route['category/(:*)/(:*)'] = "/$1";
于 2013-06-12T06:05:15.857 回答