1
我想这个网址重写网址在笨
http://mywebsite.local/watch/serie/le-transporteur-la-s%C3%A9rie
改写为
http://mywebsite.local/watch-serie-le-transporteur-la-s%C3%A9rie.html
我是如何进行呢?
我想这个网址重写网址在笨
http://mywebsite.local/watch/serie/le-transporteur-la-s%C3%A9rie
改写为
http://mywebsite.local/watch-serie-le-transporteur-la-s%C3%A9rie.html
我是如何进行呢?
你需要做的htaccess文件和配置文件 重写条件,那么,在你的路线文件,你需要使用:
$route['watch-serie-le-transporteur-la-s%C3%A9rie\.html']='folder/controller/method';
或
$route['(:any)\.html'] = 'folder/controller/method';
[提示的可能的复制调试.htaccess重写规则](http://stackoverflow.com/questions/9153262/tips-for-debugging-htaccess-rewrite-rules) – Fairy
检查[本文在文档](https://github.com/bcit- ci/CodeIgniter/blob/develop/application/config/config.php#L59)并找出那个w唉。 – Tpojka