Fajfi
(Dominik )
1
在我的 Xenforo 版块上,链接看起来像这样:
对于分类:
https://example.com/forums/category.1234/
/forums/category-name.ID/
对于帖子:
https://example.com/threads/thread-name.1234/
/threads/thread-name.ID/
不幸的是,我猜由于 / 和 . 的数量,在 Discourse 面板中添加后(/admin/customize/permalinks),重定向不起作用,有没有办法修复它并创建正确的重定向?
pfaffman
(Jay Pfaffman)
2
有一个 permalink_normalization 网站设置可以帮助解决这个问题。
2 个赞
Fajfi
(Dominik )
4
谢谢!
这是我针对 XenForo 情况的永久链接规范化正则表达式:
https://example.com/threads/thread-name.1234/
/(threads)\\/(.*?)([0-9].*)?$/threads/\\3
https://example.com/forums/category.1234/
/(forums)\\/(.*?)([0-9].*)?$/forums/\\3
当 thread-name 或 category 中有数字时,请使用此
/(threads)\\/(.*?\\.)([0-9].*)?$/threads/\\3
/(forums)\\/(.*?\\.)([0-9].*)?$/forums/\\3
2 个赞
system
(system)
关闭
5
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.