我试图在admin cp上使用vbulletin友好的url选项,以使论坛的网址尽可能小,以便记住访问者,并且无法实现我所追求的目标。
好吧,我想简单地让所有长篇网址都做空:
www.myforum.com/en/threads/1220-my-topic-about-moon
到此:
www.myforum.com/en/thr1220
所以基本上我想跳过线程这个词,并将 thr 添加到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]
知道如何更改或修改此代码以实现我所追求的目标。
由于