簡體   English   中英

子域dan子​​目錄中的SEF Joomla

[英]SEF Joomla in Subdomain dan Subdirectory

我有位於http://demo.mydomain.com/dir1/myjooma Joomla網站。

我想使用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]

options指令可能未配置。 同時,我將嘗試刪除Options +FollowSymLinks

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM