在phpstudy中创建一个网站(能用本地域名访问)

phpstudy中让ThinkPHP5访问去除/public/index.php
这样浏览器输入www.exam.com就能访问了,省略了后面的index.php
phpstudy中让ThinkPHP5访问去除/public/index.php
phpstudy中让ThinkPHP5访问去除/public/index.php

但是这样是无法通过控制器/模块/方法这样的方式,去访问网页
phpstudy中让ThinkPHP5访问去除/public/index.php

通过控制器/模块/方法,去访问网页

打开这个文件
phpstudy中让ThinkPHP5访问去除/public/index.php
原来的是
phpstudy中让ThinkPHP5访问去除/public/index.php
修改后(?s=)
phpstudy中让ThinkPHP5访问去除/public/index.php
注意文件里面的空格也是很重要的,不要随意修改
再次访问
phpstudy中让ThinkPHP5访问去除/public/index.php

相关文章:

  • 2021-05-16
  • 2021-08-18
  • 2021-09-14
  • 2022-02-11
  • 2021-05-22
  • 2022-12-23
  • 2022-12-23
  • 2021-07-21
猜你喜欢
  • 2021-12-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-30
  • 2021-08-10
相关资源
相似解决方案