我用Lets encrypt将我的网站从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商店,那么问题是由于您的。htaccess文件或缓存文件夹。
从一个新的magento包中放置一个新的.htaccess
副本,并删除缓存和会话文件夹。然后刷新,应该就可以了。
或者另一种说法是
在core_config_data
表中去掉web/cookie/cookie_domain
的值,将web/cookie/cookie_httponly
"设置为0
。通过删除var/cache
中的文件来清除缓存。同时清除Magento管理面板