Magento中的SSL错误(未找到404)

问题描述 投票:0回答:2

一些背景信息:我正在运行最新版本的magento。我的安装托管在SiteGround上,我有一个链接到magento文件夹的插件作为其根目录。我启用了网络服务器重写,禁用了基本网址的autoredirect。我不安全的域名是http://www.domain.com/格式,我的安全https://www.domain.com。我有启用前端的安全URL和后端禁用的安全URL。

我的问题:后端的一切都运行得非常好。但是,在前端,主页面加载,但在尝试登录时,我找不到404(因为它使用的是https://安全域)。如果我添加更改地址以包含index.php /页面加载并且错误消失。我很确定它是一个.htaccess问题,但我不知道如何解决它。任何帮助将不胜感激。

谢谢。索利曼

.htaccess magento ssl http-status-code-404
2个回答
0
投票

Soliman,您是否检查了系统>配置> Web> URL选项|下的选项搜索引擎| (联合国)安全是否符合您的要求?


0
投票

我正在使用Apache 2.4和Magento 1.9.X并遇到了同样的问题。 我的修复是在根网站文件夹中创建一个.htacess文件,其中magento文件夹是(app,skin,media等),代码如下:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
RewriteCond %{THE_REQUEST} ^.*/index.php
RewriteRule ^(.*)index.php$ http://my-site.com/$1 [R=301,L]
RewriteRule ^index.php/(admin|user)($|/) - [L]
RewriteRule ^index.php/(.*) $1 [R=301,QSA,L]
</IfModule>

在这里发现: How to remove index.php from URLs?

© www.soinside.com 2019 - 2024. All rights reserved.