1、在httpd.conf中引入httpd-vhosts.conf

PHP配置环境中如何开启伪静态

2、在httpd.conf中开启mod_rewrite.so

PHP配置环境中如何开启伪静态

3、在httpd-vhosts.conf中配置虚拟主机

 PHP配置环境中如何开启伪静态

 AllowOverride All 的作用:

                     AllowOverride All主要是为了实现URL重写,这点在TP5中非常重要,可以在.htaccess中进行配置,从而省略路径中的index.PHP

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-13
  • 2022-12-23
  • 2021-05-04
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-20
  • 2022-02-14
相关资源
相似解决方案