通过.htaccess文件 隐藏 入口文件index.php

Posted on 2021-12-17 17:14  君子不卿  阅读(86)  评论(0编辑  收藏  举报
<IfModule mod_rewrite.c>
  Options +FollowSymlinks -Multiviews
  RewriteEngine On

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

Copyright © 2024 君子不卿
Powered by .NET 9.0 on Kubernetes

//评论