【发布时间】:2014-05-29 21:58:58
【问题描述】:
ht访问代码:
RewriteEngine on
RewriteCond %{REQUEST_URI} ^/system.*
RewriteRule ^(.*)$ index.php?/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
配置文件:
$config['base_url'] = 'http://baseurl/apps';
$config['index_page'] = '';
$config['uri_protocol'] = 'AUTO';
$config['enable_hooks'] = FALSE;
$config['allow_get_array'] = TRUE;
$config['enable_query_strings'] = FALSE;
我收到“404 page not found”错误。 当我更改 htaccess 文件时
RewriteRule ^(.*)$ index.php?/$1 [L] to RewriteRule ^(.*)$ index.php/$1 [L]
出现“没有指定输入文件”错误。
我已经尝试了几个 htaccess 代码,但我仍然遇到这些问题。
我正在使用上面的 htaccess 代码,用于从 url 中删除 index.php。
【问题讨论】:
-
您运行的是哪种网络服务器? IIS、Apache 等
标签: php .htaccess codeigniter