2016-09-20 3 views
0

나는 http://demo.mydomain.com/dir1/myjooma에 위치한 Joomla 웹 사이트를 가지고 있습니다.SEF Joomla in Subdomain dan 하위 디렉토리

친절한 URL을 만들기 위해 SEF 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 +FollowSymLinks을 삭제하려고합니다.

+0

여전히 작동하지 않습니다. 템플릿에서 버그가 발생할 수 있습니까? 기본 템플릿으로 전환하기 때문에 SEF는 작동합니다. –