2016-09-15 7 views
0

Lets Encrytpで私のウェブサイトをhttpからhttpsに変更しました。 Magento管理コンソールにアクセスできなくなりました。私はそれが.htaccessファイルのためだと読んでいます。多くのリダイレクトへのエラー.htaccess Magento

<IfModule mod_rewrite.c> 

############################################ 
## enable rewrites 

    Options +FollowSymLinks 
    RewriteEngine on 

############################################ 
## you can put here your magento root folder 
## path relative to web root 

    #RewriteBase /magento/ 

############################################ 
## workaround for HTTP authorization 
## in CGI environment 

    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] 

############################################ 
## TRACE and TRACK HTTP methods disabled to prevent XSS attacks 

    RewriteCond %{REQUEST_METHOD} ^TRAC[EK] 
    RewriteRule .* - [L,R=405] 

############################################ 
## redirect for mobile user agents 

    #RewriteCond %{REQUEST_URI} !^/mobiledirectoryhere/.*$ 
    #RewriteCond %{HTTP_USER_AGENT} "android|blackberry|ipad|iphone|ipod|iemobile|opera mobile|palmos|webos|googlebot-mobile" [NC] 
    #RewriteRule ^(.*)$ /mobiledirectoryhere/ [L,R=302] 

############################################ 
## never rewrite for existing files, directories and links 

    RewriteCond %{REQUEST_FILENAME} !-f 
    RewriteCond %{REQUEST_FILENAME} !-d 
    RewriteCond %{REQUEST_FILENAME} !-l 

############################################ 
## rewrite everything else to index.php 

    RewriteRule .* index.php [L] 

</IfModule> 

変更する必要があることを教えてもらえますか?私はWeb開発ではあまりよくありません。

答えて

0

MagentoストアでTOO MANY REDIRECTSのようなエラーが発生した場合は、.htaccessファイルまたはキャッシュフォルダが原因で問題が発生します。

新鮮なマゼンタパッケージから.htaccessの新しいコピーを置き、キャッシュとセッションフォルダも削除します。その後、リフレッシュし、それは良いはずです。

それとも別の方法があり、

core_config_dataテーブルでweb/cookie/cookie_domainの値を削除し、0に」web/cookie/cookie_httponlyを設定します。 var/cacheのファイルを削除してキャッシュをクリアします。またMagentoの管理パネルからキャッシュをクリアしてください

+0

こんにちは、私は上記のことをやった。まだ動作しません。新しい '.htaccess'ファイルを私のWebdirectoryに入れました。私の '/ var/cache'もきれいにしましたが、'/var/session'はありません。 'core_config_data'テーブルでは、' web/cookie/cookie_domain'や 'web/cookie_cookie_httponly'のレコードではありませんでした。そして、私は、このエラーは管理パネルでのみ発生するが、ストアページが機能することを発見しました。 – RafnexJr

関連する問題