2011-08-30 75 views
1

我在我的web服務器上的子文件夾中安裝了vanilla 2.0.18b2。論壇的作品,但我無法登錄。當我點擊一個鏈接「登錄」頁面變成空白。我認爲這是一個與.htaccess文件有關的問題,因爲我有一個工作解決方案,但我想改變一些東西並破壞文件。香草2斷開的鏈接

的另一件事是,當我打字forum.mysite.com它說:

Fatal error: Class 'Gdn' not found in /bootstrap.php on line 47

當我輸入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> 

回答

0

嘗試改變RewriteRule這個 RewriteRule ^(.*)$ index.php?p=$1 [QSA,L]

+0

我沒有效果。除此之外,我認爲「\」是一個轉義字符。 –

+0

@neosatan我不認爲你需要在替代部分轉義字符。否則,你可能也需要逃避那個'.'。還要把'RewriteBase'改成'/ forum'而不是'/ forum /' –

+0

以前就認爲。再次沒有效果。 –

5

嘗試通過刪除緩存文件夾內的所有文件和文件夾清空緩存。 面對完全相同的問題,清除緩存解決了問題!

+0

非常感謝! :) –