2016-09-20 79 views
0

我有位于http://demo.mydomain.com/dir1/myjooma的Joomla网站。SEF Joomla in Subdomain dan子目录

我想使用SEF URL来使URL友好,但我总是得到500错误。这是我的.htaccess

Options +FollowSymLinks 
    RewriteEngine On 

    # Block out any script trying to base64_encode data within the URL. 
    RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR] 

    # Block out any script that includes a <script> tag in URL. 
    RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR] 

    # Block out any script trying to set a PHP GLOBALS variable via URL. 
    RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR] 

    # Block out any script trying to modify a _REQUEST variable via URL. 
    RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2}) 

    # Return 403 Forbidden header and show the content of the root homepage 
    RewriteRule .* index.php [F] 

    RewriteBase /dir1/myjoomla 

    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] 
    RewriteCond %{REQUEST_URI} !^/index\.php 
    RewriteCond %{REQUEST_FILENAME} !-f 
    RewriteCond %{REQUEST_FILENAME} !-d 
    RewriteRule .* index.php [L] 

回答

0

options指令可能未配置。在此期间,我会尝试删除Options +FollowSymLinks

+0

仍然无法正常工作。模板可能存在错误?因为我切换到默认模板,SEF是有效的 –