我试图在管理员 cp 上使用 vbulletin 友好的 url 选项,以使论坛的 url 尽可能小,以便访问者记住,但无法实现我所追求的。
好吧,我只想让所有长网址都变短:
www.myforum.com/en/threads/1220-my-topic-about-moon
对此:
www.myforum.com/en/thr1220
所以基本上我想跳过threads这个词,例如添加到url的末尾+线程号而不列出线程标题。
这是我从我的 vbulletin 获得的 .htaccess 代码,我相信修改开始的地方:
RewriteEngine on
# If you are having problems or are using VirtualDocumentRoot, uncomment this line and set it to your vBulletin directory.
# RewriteBase /forum/
# If you are having problems with the rewrite from content/ to content.php, uncomment this line to turn MultiViews off.
# Options -MultiViews
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
# Forum
RewriteRule ^threads/.* showthread.php [QSA]
RewriteRule ^forums/.* forumdisplay.php [QSA]
RewriteRule ^members/.* member.php [QSA]
RewriteRule ^blogs/.* blog.php [QSA]
RewriteRule ^entries/.* entry.php [QSA]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
知道如何更改或修改此代码以实现我所追求的目标。
谢谢