大家好,请给我建议,因为 Code igniter 3.1.11 router.php 不起作用 它只适用于 http://maindomain/ 但不适用于 http://maindomain/about 而显示 404 页面<?phpdefined('BASEPATH') OR exit('No direct script access allowed');$route['(:any)'] = 'pages/view/$1';$route['default_controller'] = 'pages/view';$route['404_override'] = '';$route['translate_uri_dashes'] = FALSE;下面的.htaccess文件RewriteEngine onRewriteCond $1 !^(index\.php|assets|images|js|css|uploads|favicon.png)RewriteCond %(REQUEST_FILENAME) !-fRewriteCond %(REQUEST_FILENAME) !-dRewriteRule ^(.*)$ ./index.php/$1 [L]# php -- BEGIN cPanel-generated handler, do not edit# This domain inherits the “PHP” package.# php -- END cPanel-generated handler, do not edit
目前暂无任何回答
- 0 回答
- 0 关注
- 90 浏览
添加回答
举报
0/150
提交
取消