Posted on 2015-07-29 09:41
lxasp 阅读(352)
评论(0) 编辑 收藏 引用 所属分类:
PHP
RewriteRule ^(.*)$ index.php?/$1 [L]
缺少个?号,现在新版的PHP一般都是FastCGI运行的了,所以一般都会出现错误:
No input file specified.
<IfModule mod_rewrite.c>
RewriteEngine On
#RewriteBase /
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php|assets|robots\.txt)
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>