0

zencartプラグインをインストールしました"Ceon's SEO URL"

管理パネルにはインストールでエラーはありませんが、サイトで製品名をクリックすると404エラーが表示されます。

ceonのプラグインのインストール手順を実行しようとしていますが、問題が発生しています

8.Add the Rewrite Rule to the Webserver (Apache/IIS etc.)

助けてください。

このパスにこの.htaccessファイルがhtdocs\zencarttest\zencartあり、.htaccessは次のようになっています

## BEGIN CEON URI MAPPING REWRITE RULE

RewriteEngine On

# ONLY rewrite URIs beginning with /zencarttest/zencart/
RewriteCond %{REQUEST_URI} ^/zencarttest/zencart/ [NC]

# Don't rewrite any URIs ending with a file extension (ending with .[xxxxx])
RewriteCond %{REQUEST_URI} !\.[a-zA-Z]{2,5}$ [OR]
RewriteCond %{REQUEST_URI} \.(html)$ [NC]




# Don't rewrite any URIs for some specific file format extensions,
#   which are not covered by main file extension condition above
#   Uncomment the following line to apply this condition! (Remove the # at the start of the next line)
RewriteCond %{REQUEST_URI} !\.(3gp|3g2|h261|h263|mj2|mjp2|mp4v|mpg4|m1v|m2v|m4u|f4v|m4v|3dml)$ [NC]

# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/zencarttest/zencart/admin_test [NC]

# Don't rewrite editors directory
RewriteCond %{REQUEST_URI} !^/zencarttest/zencart/editors/ [NC]

# Handle all other URIs using Zen Cart (its index.php)
RewriteRule .* /zencarttest/zencart/index.php [QSA,L]

## END CEON URI MAPPING REWRITE RULE

どこで間違えたの?

私を助けてください!前もって感謝します...

4

1 に答える 1

1

その .htaccess ファイルを自分で作成しましたか、それとも自動生成された .htaccess ファイルを使用しましたか? admin->Modules->Ceon URI Config に移動し、Installation Check を選択して Check Installation リンクをクリックすると、ストアのルート (この場合は htdocs\zencarttest\ゼンカート)。それでも 404 が表示される場合は、ここでスラッシュを削除してみてください。

# Handle all other URIs using Zen Cart (its index.php)
RewriteRule .* /zencarttest/zencart/index.php [QSA,L]

だからあなたは得る:

# Handle all other URIs using Zen Cart (its index.php)
RewriteRule .* zencarttest/zencart/index.php [QSA,L]

また、サーバーに mod_rewrite がインストールされていることを確認してください (インストールされていないものもいくつか見ました)。

于 2012-07-11T10:35:45.827 に答える