跳转到帖子

Featured Replies

  • 网站管理

修改nginx.conf配置文件,在 location / { }节点 或者是 location [安装目录名称] / { }(子目录安装)节点间加入上述规则。

如果用的宝塔,直接在伪静态那里选择对应程序,然后修改二级目录地方即可。以下为zblog的伪静态配置。

主域名
location /{
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;
}
}
二级目录
location /a/ {
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 (.*) /a/index.php;
}
}

成长就是不断打破并重建三观

  • 查看数 0
  • 已创建
  • 最后回复
游客
回帖…

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.