伪静态

htaccess如何配置隐藏index.php文件

<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>

posted @ 2022-03-18 18:42  cmooc  阅读(17)  评论(0编辑  收藏  举报