nk-lihaink-cn/public/nginx.htaccess
liuxiaoquan f8c71c69d1 1.0
2023-02-28 15:44:15 +08:00

52 lines
1.0 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#此文件为Nginx的伪静态文件 PHPCUSTOM官方网址http://www.phpcustom.com http://www.lccee.com
# 将以下是301跳转设置请自定修改为您的域名
if ($Host = 'xxx.com'){
rewrite ^/(.*)$ http://www.phpcustom.com/$1 permanent;
}
#以下为phpwind9.0伪静态规则,去掉下面的#即可生效
#------------------------------------------------------------------------------------------------
# if (-f $request_filename) {
# break;
# }
# if ($request_filename ~* "\.(js|ico|gif|jpe?g|bmp|png|css)$") {
# break;
# }
# if (!-e $request_filename) {
# rewrite . /index.php last;
# }
# 这个是ThinkPHP V5伪静态规则示例 请去掉以下代码前边的#号即可生效
#------------------------------------------------------------------------------------------------
#if (!-e $request_filename) {
# rewrite ^(.*)$ /index.php?s=/$1 last;
# break;
# }
#------------------------------------------------------------------------------------------------