我使用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开发方面不太好。
答案 0 :(得分:0)
如果您遇到类似Magento商店的错误,那么问题就在于您的.htaccess文件或缓存文件夹。
从新的magento包中放置.htaccess
的新副本,并删除缓存和会话文件夹。然后刷新它应该是好的。
或者另一种方式是,
在core_config_data
表格中删除web/cookie/cookie_domain
的值并将web/cookie/cookie_httponly
“设置为0
。通过删除var/cache
中的文件来清除缓存。同时清除Magento管理面板中的缓存