[英]Magento Sub Pages Shows 404 NOT FOUND Error
我正在使用Magento 1.9.1 。 我在服务器中成功安装了Magento。 但是当我浏览前端的任何子页面(例如:关于我们,联系我们,登录等)时,它显示404 Not Found Error。 但是主页显示正确。
我的home
网址是this: http://mydomain.in/store
。此显示正常。 我的Contact Us
页面是: http://mydomain.in/store/contacts
: http://mydomain.in/store/contacts
。 这显示未找到错误。 但是当我像这样http://mydomain.in/store/index.php/contacts
手动键入url时,这表明工作正常。 那就是当添加index.php
它开始工作了。
我该如何运作?
我找到的解决方案: Change 'Use Web Server Rewrites' to NO in System->Configuration->Web->Search Engine Optimization.
这样可以正常工作,但网址包含index.php
例如http://mydomain.in/store/index.php/contacts.
我认为http://mydomain.in/store/contacts
是标准的,这应该可以工作(但我不知道如何)。 另一个问题是User Logging, checkout etc
在这里不起作用。 为了正常工作,我们可以在相应页面中添加form key
。 但这不是可取的,因为必须更改许多页面。
另一个解决方案是 : make enable apache mod rewrite. Uncomment this line LoadModule 'rewrite_module modules/mod_rewrite.so' inside 'wamp\\bin\\apache\\apache2.4.9\\conf\\httpd.conf'.
make enable apache mod rewrite. Uncomment this line LoadModule 'rewrite_module modules/mod_rewrite.so' inside 'wamp\\bin\\apache\\apache2.4.9\\conf\\httpd.conf'.
我的问题是如何避免Magento子页面中的404 NOT FOUND ERROR? 当我按照上述解决方案时,URL路径包含index.php。 并且类似日志记录的功能无法正常工作。
如何避免在URL中使用index.php?
我的文件夹结构是D:\\wamp\\apache2\\htdocs\\site\\store
。 存储文件夹包含magento files.
home page
位于http://mydomain.in/store.
请帮助我。任何帮助都是真的。
为了避免在URL中使用index.php,必须在服务器上启用mod_rewrite
,然后从Magento管理面板中转到System->conguration->web->Search Engines Optimization
并将标记Use Web Server Rewrites
为Yes
。 清除缓存并放手。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.