Php Magento子页面显示404未找到错误
我正在使用Magento 1.9.1。我在服务器上成功安装了Magento。但当我在前端浏览任何子页面(例如:关于我们、联系我们、登录等)时,它会显示404notfound错误。但是主页显示正确 我的Php Magento子页面显示404未找到错误,php,apache,magento,mod-rewrite,http-status-code-404,Php,Apache,Magento,Mod Rewrite,Http Status Code 404,我正在使用Magento 1.9.1。我在服务器上成功安装了Magento。但当我在前端浏览任何子页面(例如:关于我们、联系我们、登录等)时,它会显示404notfound错误。但是主页显示正确 我的主页页面url类似于这样:http://mydomain.in/store。此显示正常。我的联系我们页面是:http://mydomain.in/store/contacts。这显示未找到错误。但当我像这样手动键入url时http://mydomain.in/store/index.php/cont
主页
页面url类似于这样:http://mydomain.in/store
。此显示正常。我的联系我们
页面是:http://mydomain.in/store/contacts
。这显示未找到错误。但当我像这样手动键入url时http://mydomain.in/store/index.php/contacts
。这显示正在工作。就是在添加index.php
时,它开始工作
我如何才能让它工作起来???
我找到的解决方案:在系统->配置->网络->搜索引擎优化中将“使用Web服务器重写”更改为否。
这使其工作正常,但url包含index.php
如下http://mydomain.in/store/index.php/contacts.
我想http://mydomain.in/store/contacts
是标准配置,应该可以使用(但我不知道如何使用)。另一个问题是用户登录、签出等在这里不起作用。为了使工作正常,我们可以在相应的页面中添加表单键
。但这并不可取,因为许多页面必须更改
另一个解决方案是:启用apache mod rewrite。取消对这一行LoadModule“rewrite\u module modules/mod\u rewrite.so”的注释,“inside”wamp\bin\apache\apache2.4.9\conf\httpd.conf.
我的问题是如何避免在Magento子页面中出现404未找到错误?
当我遵循上述解决方案时,url路径包含index.php。而类似日志记录的功能变得不起作用
如何避免url中的index.php?
我的文件夹结构是D:\wamp\apache2\htdocs\site\store
存储文件夹包含magento文件。
主页可在http://mydomain.in/store.
请帮助我。任何帮助都是非常值得的。为了避免URL中的index.php,您必须在您的服务器上启用mod_rewrite
,并从Magento管理面板转到System->conguration->web->Search Engines Optimization
并将标记使用web服务器重写
设置为Yes
。清除缓存并试一试。好的,但现在登录不起作用……在我的问题中,我已经指出了这一点。使用Web服务器重写为“是”=>login issue&使用Web服务器重写为“否”=>not found error。这就是问题所在。