[英]Error to many redirection .htaccess Magento
我使用Lets Encrytp將網站從http更改為https。 現在,我無法訪問我的Magento管理控制台。 我讀到這是因為.htaccess文件。
<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開發。
如果您在Magento商店中遇到諸如TOY MANY REDIRECTS之類的錯誤,則問題是由於您的.htaccess文件或緩存文件夾所致。
從新的magento程序包中放置.htaccess
的新副本,並刪除緩存和會話文件夾。 然后刷新,它應該很好。
或者另一種方式是
在core_config_data
表中,刪除web/cookie/cookie_domain
的值,並將web/cookie/cookie_httponly
設置為0
。 通過刪除var/cache
的文件來清除var/cache
。 同時從Magento管理面板中清除緩存
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.