我想问下 为什么我ci3.0 去掉index.php
我在网上查了资料 他们这个都不用加问号的 RewriteEngine onRewriteCond $1 !^(index\.php|images|robots\.txt)RewriteRule ^(.*)$ /index.php/$1
为什么我这个要加问号才可以去掉index.php 不然就出现这个错误No input file specified.
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /index.php?/$1
这是我的.htaccess,我的CI放在apache主目录内的mycms目录
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /mycms/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index.php|images|robots\.txt)
RewriteRule ^(.*)$ index.php/$1
</IfModule> 我想问问是什么原因?是我哪里没有开启? 帮忙啊各位大神啊 oomengnan 发表于 2016-1-22 16:42
这是我的.htaccess,我的CI放在apache主目录内的mycms目录
我是不知道为什么把这个放在CI 根目录居然需要加问号才可以 求解,我也遇到了.我用的是phpstudy. 有可能是apache2.4的问题,也不排除phpstudy的问题,找到原因告诉一声哈
页:
[1]