码迷,mamicode.com
首页 > Web开发 > 详细

关于tp5自动过滤index.php

时间:2018-07-28 20:28:58      阅读:495      评论:0      收藏:0      [点我收藏+]

标签:pre   views   links   path   filename   代码   color   div   lin   

在public/.htaccess 中输入这段代码即可实现过滤index.php

 

1 <IfModule mod_rewrite.c>
2   Options +FollowSymlinks -Multiviews
3   RewriteEngine On
4 
5   RewriteCond %{REQUEST_FILENAME} !-d
6   RewriteCond %{REQUEST_FILENAME} !-f
7   #RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
8   RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]
9 </IfModule>

 

关于tp5自动过滤index.php

标签:pre   views   links   path   filename   代码   color   div   lin   

原文地址:https://www.cnblogs.com/CcPz/p/9383119.html

(1)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!