Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nginx 伪静态规则。 #3

Closed
JarvanDing opened this issue Jan 3, 2018 · 2 comments
Closed

nginx 伪静态规则。 #3

JarvanDing opened this issue Jan 3, 2018 · 2 comments

Comments

@JarvanDing
Copy link

JarvanDing commented Jan 3, 2018

# nginx configuration

location / {
if (!-e $request_filename){
rewrite ^(.)$ /%1 redirect;
}
if (!-e $request_filename){
rewrite ^(.
)$ /index.php break;
}
}
亲测可用,但是admin 目录进不去,在找方法
原来 前面必须加#/admin
可是一直提示系统繁忙,也无法登陆。

@JarvanDing
Copy link
Author

写错了。用这个
location / {
try_files $uri $uri/ /index.php?$query_string;
}

@Tai7sy
Copy link
Owner

Tai7sy commented Jan 5, 2018

已经加到安装说明里面了, 感谢反馈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants