美文网首页
think php8.x 在phpenv中访问不了

think php8.x 在phpenv中访问不了

作者: wuyuan0127 | 来源:发表于2024-07-27 18:31 被阅读0次

1. public 目录下的  .htaccess 文件修改 最后一行 RewriteRule

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]

2.  网站目录制定到 public 目录

     for example:    C:/phpEnv/www/www.yuanwu.com/public

相关文章

网友评论

      本文标题:think php8.x 在phpenv中访问不了

      本文链接:https://www.haomeiwen.com/subject/hfrbhjtx.html