【发布时间】:2018-03-19 10:43:22
【问题描述】:
您好,我成功删除了我网址中的 index.php,但是 [controller folder]/[function]/[argument] 不再起作用了
这是我的过程
RewriteEngine on
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
我也改了
$config['uri_protocol'] = 'REQUEST_URI';
$config['index_page'] = '';
这是我的配置['base_url']
$base = "http://".$_SERVER['HTTP_HOST'];
$base .= str_replace(basename($_SERVER['SCRIPT_NAME']),"",$_SERVER['SCRIPT_NAME']);
$config['base_url'] = $base;
我已经在 apache 中更改了我的 http.conf 允许全部覆盖
我也已经重新启动了我的 xampp,Cna 有人帮助我为什么 [controller folder]/[function]/[argument] 不起作用?
【问题讨论】:
-
您可以关注此link 进行相同的质量检查。
标签: php apache .htaccess codeigniter