简体   繁体   English

必须使用Magento index.php和SSL才能登录和签出页面[HTTP 404]

[英]Magento index.php required with SSL for login and checkout pages [HTTP 404]

I am using magento 1.9, I've got installed SSL which is working just fine. 我使用的是magento 1.9,我已经安装了SSL,它工作正常。

The problem is when I am switching my secure link to https:// - all pages are working correctly, but pages such as checkout, register and login are throwing error 404, unless I manually add prefix with index.php 问题是当我将我的安全链接切换到https://时-所有页面均正常工作,但是诸如结帐,注册和登录之类的页面抛出错误404,除非我手动使用index.php添加前缀

These links are working correctly when I am working with non-secure connections. 当我使用非安全连接时,这些链接可以正常工作。

For example this links are working correctly: 例如,此链接正常工作:

  1. http://myshop.com/customer/account/login/ http://myshop.com/customer/account/login/
  2. http://myshop.com/customer/account/create/ http://myshop.com/customer/account/create/

But my links 但是我的链接

  1. https://myshop.com/customer/account/login/ https://myshop.com/customer/account/login/
  2. https://myshop.com/customer/account/create/ https://myshop.com/customer/account/create/

are throwing HTTP 404 - Not Found - In order to make it work I have to manually add index.php prefix so my links look like this: 正在抛出HTTP 404-找不到-为了使其正常工作,我必须手动添加index.php前缀,因此我的链接如下所示:

  1. http://myshop.com/index.php/customer/account/login/ http://myshop.com/index.php/customer/account/login/
  2. http://myshop.com/index.php/customer/account/create/ http://myshop.com/index.php/customer/account/create/

I have changed my .htaccess file, and I think the problem lies in this file. 我已经更改了.htaccess文件,但我认为问题出在此文件中。 How can I edit this file so it fits my purposes ? 如何编辑此文件以使其适合我的目的?

Any other solutions are more then welcome also. 任何其他解决方案都将受到欢迎。

The SSL has its own configuration files and sometimes when SSL does not work well, it may give the error of 404 (Page not found). SSL具有自己的配置文件,有时SSL无法正常运行时,可能会显示404错误(找不到页面)。 Normally, the file name is http.conf or ssl.conf or default-ssl file which depends on your OS 通常,文件名是http.conf或ssl.conf或default-ssl文件,具体取决于您的操作系统

Find here: 在这里找到:

<Directory "path to your directory">
    SSLOptions +StdEnvVars
    AllowOverride All
</Directory>

make sure that AllowOverride All is present in your config 确保您的配置中存在AllowOverride All

if it does not help attach what OS and web server you are using 如果它不能帮助附加您正在使用的操作系统和Web服务器

Double check if you have enabled Web Server Rewrites 仔细检查您是否启用了Web服务器重写

config > general > web > Search Engine Optimization > Use Web Server Rewrites > Yes 配置>常规>网站>搜索引擎优化>使用Web服务器重写>是

PS restore the .htaccess file before try above method PS尝试上述方法之前还原.htaccess文件

检查了您网站的某些当前页面,例如https://www.myshop.com/registreren ,它与https配合正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM