如何从 Magento 的 URL 中删除 index.php [英] How do I remove index.php from the URL in Magento

查看:25
本文介绍了如何从 Magento 的 URL 中删除 index.php的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从 Magento 的 URL 中删除 index.php.

How can i remove index.php from the URL in Magento.

例如主页 URL 是:www.mydomain.com/index.php

For example the home page URL is: www.mydomain.com/index.php

我想显示:www.mydomain.com

有没有办法在 Magento 管理面板中做到这一点.

So is there any way to do that in the Magento Admin Panel.

推荐答案

您可以删除前端 URL 中的 index.php,在 Magento 的管理部分执行以下步骤:

You can remove the index.php in the frontend URLs performing the following steps in Magento's admin section:

系统 -> 配置 -> 网页 -> 搜索引擎优化中,选择.

编辑 /installdir/.htaccess 并取消注释该行:

Edit the /installdir/.htaccess and uncomment the line:

RewriteBase /magento/

在我的例子中,Magento 所在的子目录被称为 magento,所以如果它不同,请将其更改为您的子目录路径.

In my case the subdirectory Magento is in is called magento, so change it to your subdirectory path if it is different.

这篇关于如何从 Magento 的 URL 中删除 index.php的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆