Magento选择类别不工作没有index.php在url


Magento select category not working without index.php in url

我正在使用Magento 1.9.1创建我的商店,我已经安装了它,并在其中添加了类别和产品。假设我的商店URL如下:

http//:www.storename.com

当我从我的网站点击到一个类别时,它会重定向到http//:www.storename.com/categoryname。但是我得到了一个404 error的页面。当我手动将页面编辑为http//:www.storename.com/index.php/categoryname时,它正在工作。我不知道后端发生了什么错误。我是Magento的新手,任何帮助都将不胜感激。

  1. 转至系统>>配置
  2. 单击Web(在"常规"选项卡下)
  3. 搜索引擎优化下,将使用Web服务器重写的值更改为
  4. 清除缓存并重新加载页面。现在每件事都应该运转良好

注意:如果您的web服务器被配置为读取magento的.htaccess文件,那么您也可以将mod_rewrite设置为yes,而无需遵循上述过程。

这将从URL中删除index.php。