昨天弄了好久没弄起这个伪静态,今天在公司看了一下公司的这个配置信息,终于也配置好了这个环境。
windows下ThinkPHP伪静态配置
nginx环境配置ThinkPHP伪静态
[html]
server {
listen 80;
server_name localhost;
root E:/DEMO;
index index.php index.html index.htm;
autoindex on;
location / {
if (!-e $request_filename) {
#rewrite ^/(.*)$ /index.php/$1 last;
rewrite ^/Home/(.*)$ /Home/index.php/$1 last;
break;
}
}
location ...