TP5.1 URL重写
1.找到对应版本的php.ini文件
2.开启cgi.fix_pathinfo=1
3.打开vhosts.conf,添加代码if (!-e KaTeX parse error: Expected '}', got 'EOF' at end of input: … rewrite ^(.*) /index.php?s=/$1 last;
}
完成,URL里可以省去index.php了
1.找到对应版本的php.ini文件
2.开启cgi.fix_pathinfo=1
3.打开vhosts.conf,添加代码if (!-e KaTeX parse error: Expected '}', got 'EOF' at end of input: … rewrite ^(.*) /index.php?s=/$1 last;
}
完成,URL里可以省去index.php了