跳轉到內容
View in the app

A better way to browse. Learn more.

PHP論壇人

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Nginx 伪静态 for 其他目录 [简体]

精選回覆

發表於

-------------------------------
先删除旧的修改方法
-------------------------------

如果你之前设置了伪静态,你需要先删除

宝塔面板 -> 点击 你的网址.com -> 配置文件 ->

删除以下这几行的伪静态

 

#禁止访问的文件或目录

伪静态在这一行的上面

# Set up rewrite rules.
    location /论坛目录名 {
        try_files  $uri $uri/ /论坛目录名/index.php;
    }
    location ~^(/page/).*(.php)$ {
        try_files  $uri $uri/ /论坛目录名/index.php;
    }

 

rewrite-other.png

 

 

---------------------------------------
新的修改方法,使用到 api 文件夹
---------------------------------------

如果你的服务器使用Apache,IPS论坛将自动给你伪静态 htaccess 文件,只要上传并修改 .htaccess 这个文件就可以。接下来到IPS论坛后台设置伪静态

 

 

如果你使用Nginx,你需要依照以下的方法,才能使用Nginx伪静态


例如:论坛安装在

https://网址.com/forum/

宝塔面板 -> 点击 你的论坛.com -> 伪静态 -> 0.当前

将以下的伪静态,复制并黏贴 -> 保存

location /论坛目录名 {
        try_files  $uri $uri/ /论坛目录名/index.php;
  }
location ~^(/page/).*(.php)$ {
    try_files  $uri $uri/ /论坛目录名/index.php;
}

location /论坛目录名/api/ {
  if (!-e $request_filename){
    rewrite ^/论坛目录名/api/(.*)$ /论坛目录名/api/index.php;
  }
}

 

Nginx01.png

 

 

Nginx02.png

 

 

------------------------------------
IPS论坛后台,也需要设置伪静态
------------------------------------

到IPS论坛后台设置伪静态

 

在这行的下面

IPS论坛后台,也需要设置伪静态

 

本文章最後於,由Jack編輯

建立帳號或登入後發表意見

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.