在入口文件index.php的同级目录中增加一个.htaccess文件就解决了<ifmodule mod_rewrite.c> rewriteengine on rewritecond %{request_filename} !-d rewritecond %{request_filename} !-f rewriterule ^(.*)$ index.php/$1 [qsa,pt,l]</ifmodule>
如果问题还存在则需要查看并修改httpd-conf配置文件:
apache的配置文件没有将mod_rewrite.so模块加载。 \
将allowoverride 的值改为all。
更多thinkphp相关技术文章,请访问thinkphp使用教程栏目进行学习!
以上就是thinkphp访问路径隐藏index.php问题的详细内容。
