代码点火器 3.1.11 router.php 不工作

大家好,请给我建议,因为 Code igniter 3.1.11 router.php 不起作用 它只适用于 http://maindomain/ 但不适用于 http://maindomain/about 而显示 404 页面


<?php

defined('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 on

RewriteCond $1 !^(index\.php|assets|images|js|css|uploads|favicon.png)

RewriteCond %(REQUEST_FILENAME) !-f

RewriteCond %(REQUEST_FILENAME) !-d

RewriteRule ^(.*)$ ./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


catspeake
浏览 91回答 0
0回答
打开App,查看更多内容
随时随地看视频慕课网APP