2012-09-19 17 views
0

我無法在我的服務器子目錄中設置joomla。在服務器的主目錄,我有。htaccess的:joomla in subdirecory

<IfModule mod_rewrite.c> 
RewriteCond %{HTTP_HOST} joomlasite.domaniew.pl 
RewriteCond %{REQUEST_URI} !^/joomlasite 
RewriteRule ^(.*)$ one/$1 [L] 

RewriteRule ^$ app/webroot/ [L] 
RewriteRule (.*) app/webroot/$1 [L] 
</IfModule> 

和joomlasite子目錄我有的.htaccess:

<IfModule mod_rewrite.c> 
    RewriteEngine On 
    RewriteCond %{REQUEST_FILENAME} !-d 
    RewriteCond %{REQUEST_FILENAME} !-f 
    RewriteRule ^(.*)$ index.php/$1 [QSA,L] 
</IfModule> 

我嘗試了幾種不同勢組合,但還是我的錯誤: Parse error: syntax error, unexpected '=', expecting '(' in /homez.221/myserver/www/joomlasite/includes/framework.php on line 42

如何我可以使它工作嗎?

回答

1

這不是htaccess的問題,你所得到的錯誤:

Parse error: syntax error, unexpected '=', expecting '(' in /homez.221/myserver/www/joomlasite/includes/framework.php on line 42

涉及您的Joomla安裝目錄。 This thread on the Joomla forum談到了這個特定的錯誤,你可以嘗試一下這個線程的一些故障排除,特別是確保你有正確的PHP版本並擁有合適的處理程序。

+0

我認爲你是對的!這個錯誤消息來自joomla - 所以重定向的作品,問題是其他人 –