0

Joomla 2.5 用の SH404SEF コンポーネントをインストールしました。私のライブサイトでは機能していますが、ローカルホストでは機能しません。

mod_rewrite を有効にして、localhost に htaccess を追加しました。しかし、リダイレクトされず、404 エラーが発生します。助けてください ここに画像の説明を入力

4

2 に答える 2

0

変数 shDefaultParams['sh404SEF_USE_NON_STANDARD_PORT' を変更することを検討してください。それはあなたのために働くと思います。

于 2012-12-04T08:19:22.740 に答える
0
  • Joomla の新規インストールを作成する
  • その後、.htacsess ファイルがあるかどうかを確認し、
  • Else .htaccess ファイルを作成し、最後に
  • Sh404sef のコントロール パネルを使用して Sh404sef コンポーネントをインストールする
  • SEF プロセスを開始すると、結果を確認できます

.htaccess サンプル

.htaccess ファイルの最後に、次のように表示されます。

## Begin - Joomla! core SEF Section.
#
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
#
# If the requested path and file is not /index.php and the request
# has not already been internally rewritten to the index.php script
RewriteCond %{REQUEST_URI} !^/index\.php
# and the request is for something within the component folder,
# or for the site root, or for an extensionless URL, or the
# requested URL ends with one of the listed extensions
RewriteCond %{REQUEST_URI} /component/|(/[^.]*|\.(php|html?|feed|pdf|vcf|raw))$ [NC]
# and the requested path and file doesn't directly match a physical file
RewriteCond %{REQUEST_FILENAME} !-f
# and the requested path and file doesn't directly match a physical folder
RewriteCond %{REQUEST_FILENAME} !-d
# internally rewrite the request to the index.php script
RewriteRule .* index.php [L]
#
## End - Joomla! core SEF Section.
于 2012-12-05T10:53:45.880 に答える