Skip to content

Instantly share code, notes, and snippets.

@corerman
Created May 18, 2018 03:25
Show Gist options
  • Save corerman/155aacc15c5bae2a953c75f2fc8462bc to your computer and use it in GitHub Desktop.
Save corerman/155aacc15c5bae2a953c75f2fc8462bc to your computer and use it in GitHub Desktop.
nginx_typecho.conf
if (-f $request_filename/index.html){
rewrite (.*) $1/index.html break;
}
if (-f $request_filename/index.php){
rewrite (.*) $1/index.php;
}
if (!-f $request_filename){
rewrite (.*) /index.php;
}
@corerman
Copy link
Author

针对typecho 配置nginxPathInfo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment