TP5 隐藏入口文件 index.php

it2022-05-05  59

找到public下的.htaccess

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 [L,E=PATH_INFO:$1] 8 </IfModule>

 

转载于:https://www.cnblogs.com/zgbcode/p/9999215.html


最新回复(0)