TP6部署虚拟主机

把public所有东西放到wwwroot目录下

修改.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]
  RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]
</IfModule>

把php改成fpm模式

posted @ 2021-04-02 11:29  张永峰z  阅读(409)  评论(0编辑  收藏  举报