wordpress二级目录站点伪静态设置方法
讲一下代码放置到站点伪静态:
location /目录名/{
rewrite ^/wp-admin$ /wp-admin/ permanent;
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;
}
}
🏆 每日挑战:你知道答案吗?
如何在 Python 中检查变量的类型?
温馨提示 : 非特殊注明,否则均为©李联华的博客网原创文章,本站文章未经授权禁止任何形式转载;IP地址:18.191.233.251,归属地:俄亥俄州Dublin ,欢迎您的访问!
文章链接:https://www.lilianhua.com/wordpress-secondary-directory-site-pseudo-static-setting-method.html
文章链接:https://www.lilianhua.com/wordpress-secondary-directory-site-pseudo-static-setting-method.html