网站根目录下.htaccess

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

 

 

详细参考手册:http://www.kancloud.cn/manual/thinkphp5/177576

相关文章:

  • 2022-12-23
  • 2021-12-12
  • 2022-12-23
  • 2022-12-23
  • 2021-08-16
  • 2021-10-27
  • 2021-12-04
  • 2021-06-30
猜你喜欢
  • 2022-12-23
  • 2021-06-16
  • 2021-09-10
  • 2022-12-23
  • 2022-12-23
  • 2021-06-11
  • 2021-09-14
相关资源
相似解决方案