fastadmin Apache隐藏应用入口文件index.php

在public下新建文件.htaccess在其中书写

<IfModule mod_rewrite.c>
  Options +FollowSymlinks -Multiviews
  RewriteEngine On

  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^(.*)$ index.php?s=/$1 [QSA,PT,L]
</IfModule>

 

posted @ 2022-04-28 15:54  zhang_you_wu  阅读(696)  评论(0)    收藏  举报