linhw
Follow

After following, you can keep track of his dynamic information in a timely manner

Course notes
  • Courses in the relevant section:Configuration acquisition and setting

    ThinkPHP5.1在没有定义路由的情况下典型的URL访问规则是: http://serverName/index.php(或者其它应用入口文件)/模块/控制器/操作/[参数名/参数值...] 如果不支持PATHINFO的服务器可以使用兼容模式访问如下: http://serverName/index.php(或者其它应用入口文件)?s=/模块/控制器/操作/[参数名/参数值...] 若想采用下面的方式访问: http://serverName/模块/控制器/操作/[参数名/参数值...] 修改public下面的.htaccess里面第7行 在index.php后面加一个? 即:RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]

    2019-08-060个赞