香草2破碎的链接

paw*_*nik 1 .htaccess mod-rewrite url-rewriting

我在我的网络服务器上的子文件夹中安装了一个vanilla 2.0.18b2.论坛有效,但我无法登录.当我点击"登录"链接时,该页面将变为空白.我认为这是.htaccess文件的问题,因为我有一个有效的解决方案,但我想改变一些东西并破坏文件.

另一件事是,当我输入forum.mysite.com时,它说:

致命错误:第47行的/bootstrap.php中找不到类'Gdn'

当我键入mysite.com/forum它时查看网站但没有样式,当我点击一个链接时它会出现500内部错误.

只有当我输入mysite.com/forum/index.php时,它看起来很正常.

我的.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/
   RewriteCond %{REQUEST_FILENAME} !-d
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteRule ^(.*)$ index.php\?p=$1 [QSA,L]
   #RewriteRule ^$ index.php/$1
</IfModule>
Run Code Online (Sandbox Code Playgroud)

Mad*_*hur 5

尝试通过删除缓存文件夹中的所有文件和文件夹来清除缓存.面对完全相同的问题,清除缓存解决了问题!