apache环境下,修改public下的.htaccess文件

tp6省略url里的index.php

 

 

加个问号就行了

tp6省略url里的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>

 

相关文章:

  • 2022-12-23
  • 2021-05-15
  • 2022-12-23
  • 2021-04-02
  • 2021-06-27
  • 2022-12-23
  • 2021-08-30
猜你喜欢
  • 2021-08-07
  • 2022-12-23
  • 2021-09-12
  • 2022-12-23
  • 2021-09-29
  • 2022-12-23
  • 2021-05-22
相关资源
相似解决方案