为了账号安全,请及时绑定邮箱和手机立即绑定

.htaccess 之 index.php

搞了小半个月 index.php  还是无法隐藏  请问这个跟 环境有问题吗?

我用CI上的 .htaccess 文件放到根目录 不行

我用TP上的 .htaccess 文件放到根目录 也不行

下面是看视频写的代码代码

<IfModule mod_rewrite.c>

RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-d

RewriteCond %{REQUEST_FILENAME} !-f

RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]

</IfModule>

//一下是报错信息

No input file specified.

没有输入文件指定。


正在回答

1 回答

  • 需要apache开启重写模块

  • apache中Alloverwrite 需要为 all

  • nginx有单独的写法

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

.htaccess 之 index.php

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信