跳轉到內容
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 伪静态 [简体]

精選回覆

發表於

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

 

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

 

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


宝塔面板 -> 单击 你的论坛.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论坛后台 -> 搜索引擎优化 -> 伪静态? -> [v] 是 -> 确认

Rewrite-CHS02.png

 

 

 

回论坛前台,网址已经不包括index.php了

 

 

如果不喜欢网址后面的标题太长

https://你的网址.com/topic/2-新主题标题/

改法为
论坛后台 -> 系统 -> 高级配置 -> 友好网址 ->

看到友好网址后面连接 -?? 问号的 -> 编辑 ->

Rewrite-CHS05.png
 

 

 

友好网址 -> 只删掉 -{?}

然后按确认,千万别改错了
 

Rewrite-CHS06.png

 

 

Rewrite-CHS07.png

 

 

 

这种 -?? 要修改的地方很多,并且插件安装越多,也就修改越多

以后再安装什么插件,一样要来此处修改它,别忘了
 

 

修改好后的友好网址

Rewrite-CHS08.png
 

 

 

清除缓存

论坛后台 -> 系统 -> 支持 -> 清除缓存

 

 

回到论坛前台,原本的情况

https://你的网址.com/topic/2-新主题标题/

已更改为

https://你的网址.com/topic/2/

 

本文章最後於,由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.