Jump to content
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.

Invision Community論壇啟用偽靜態與自訂友善網址

Featured Replies

Invision Community論壇啟用偽靜態與自訂友善網址

事前準備

在前面步驟,已於Nginx配置了偽靜態規則 (/etc/nginx/rewrite/ips.conf)

現在,還需要到IPS論壇後端開啟偽靜態功能,並修改網址的顯示方式

------------------------------------

IPS論壇後端,也需要設置偽靜態

------------------------------------

論壇後端 -> 系統 -> 搜尋引擎最佳化 -> 偽靜態網址? -> [v] 是 -> 確認

回到論壇前端,論壇網址將不再顯示 index.php

02.png

自訂友善網址格式

如果希望網址更簡潔 (移除標題文字),可依以下步驟調整:

https://域名.com/topic/2-新主題標題/

改法為

論壇後端 -> 系統 -> 進階配置 -> 友善網址 ->

看到友善網址後面連接 -?? 問號的 -> 編輯 ->

03.png

友善網址 -> 只刪掉 -{?}

然後按下確認,千萬別改錯了

04.png

05.png

這種 -{?} 要修改的地方很多,並且插件安裝越多,也就修改越多

以後再安裝什麼插件,一樣要來此處修改它,別忘了

修改好後的友善網址

06.png

-------------------------

清除快取

-------------------------

論壇後端 -> 系統 -> 支援 -> 清除快取

完成以上步驟後,論壇網址將從:

https://域名.com/topic/2-新主題標題/

變為更簡潔的格式:

https://域名.com/topic/2/

注意事項

修改網址結構可能影響搜尋引擎收錄,建議在 Google Search Console 提交新的網站地圖

若為已經有流量的老站,不建議頻繁變更網址結構

Edited by Jack

Create an account or sign in to comment

Account

Navigation

Search

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.