maimailike 发表于 2014-8-18 13:23:45

多语言route,请帮帮忙


http://127.0.0.1:8080/CICODE/flight-information/real-time-flight-information/arrival   这个地址可以正常访问。
http://127.0.0.1:8080/CICODE/flight-information/real-time-flight-information/arrival.html但是我加后缀,则访问出现404的错误
有什么办法加上后缀也不会出现错误呢?

下面的2个规则无法$route['flight-information/real-time-flight-information/arrival']='index';
$route['(en-us|zh-cn|zh-tw|ja|ko|pt-pt)']='index'; $route['(en-us|zh-cn|zh-tw|ja|ko|pt-pt)/(:any)']='$2'; $route['404_override']=''; $route['default_controller']='index';


iomect 发表于 2014-8-19 10:27:50

$config['url_suffix'] = '.html';
页: [1]
查看完整版本: 多语言route,请帮帮忙