Vanilla论坛中的任何链接似乎都没有去任何地方。就像我被困在主页和索引上一样.php没有拾取任何 url 链接。
我的 .htaccess 文件:
# Modified
# If you modify this file then change the above line to: # Modified
<IfModule mod_rewrite.c>
RewriteEngine On
# Certain hosts may require the following line.
# If vanilla is in a subfolder then you need to specify it after the /.
# (ex. You put Vanilla in /forum so change the next line to: RewriteBase /forum)
RewriteBase /forum-new
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php'?p=$1 [QSA,L]
</IfModule>
任何帮助将不胜感激,我正在使用香草的v2.1
我想知道你最后一行用反斜杠,只是删除它。
RewriteRule ^(.*)$ index.php?p=$1 [QSA,L]
注意:此.htaccess不仅与Vanilla有关。但常用(包括Wordpress)