【发布时间】:2017-09-27 16:43:16
【问题描述】:
我有一个.htaccess 文件,它可以在 CodeIgniter 3.0.6 版中正常工作。当我迁移到 CodeIgniter 3.1.6 版时,此 htaccess 不起作用,网页显示
404 页面未找到
RewriteEngine On
RewriteCond $1 !^(index\.php|images|uploads|install|user_guide|assets|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [PT,L]
【问题讨论】:
-
你的
php版本是什么? -
@Vickel 我正在使用 php 版本 5.5.19
-
@wolfgang1983 ,谢谢...但是上面链接的所有 htaccess 都不适合我
标签: php apache .htaccess codeigniter