tp3.2.3隐藏index.php的方法:首先找到并打开“.htaccess”文件;然后修改内容为“RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]”即可。

本文操作环境:windows7系统、tp3.2.3版,DELL G3电脑
tp3.2.3如何隐藏index.php?
在.htaccess这个文件中,框架初始的内容是:
<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
</IfModule>只需要改成这样(只有最后一行有所改变):
立即学习“PHP免费学习笔记(深入)”;
jquery返回顶部隐藏按钮 , 这个在商城网站用的是很多的,商品的信息很长,通过鼠标滚轮返回到顶部,那就out了,所以,商城的产品信息页面会有一个返回顶部的按钮!php中文网推荐下载!
165
<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]
</IfModule>就可以达到隐藏index.php的效果
相关推荐:最新的10个thinkphp视频教程
以上就是tp3.2.3怎么隐藏index.php的详细内容,更多请关注php中文网其它相关文章!
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号