【问题标题】:Unable to remove index.php from url magento On VPS hosting无法从 VPS 托管上的 url magento 中删除 index.php
【发布时间】:2015-09-18 02:28:41
【问题描述】:

我正在使用 VPS 主机。

我已经在 /var/www/html 下创建了一个虚拟服务器,现在我已经迁移了我的 Magento 站点。

如果我在 .htaccess 文件中进行更改以从 url 中删除 index.php,则它不起作用。我已经尝试从 Magento 管理面板 Use Web Server Rewrites -> Yes ,它也不起作用。

Mod_rewrite 也已启用。

您的帮助将不胜感激。

【问题讨论】:

  • 问题已解决。在特定的商店配置中提到了 index.php 的问题。

标签: apache magento seo vps


【解决方案1】:

因为您已经将 Web Server Rewrites 设置为 Yes。请确保Base Secure URLBase Unsecure URL 不包含index.php 例如:

基本 URL 必须像 http://www.example.com/ 而不是 http://www.example.com/index.php/

【讨论】:

猜你喜欢
  • 1970-01-01
  • 2015-07-26
  • 2013-05-15
  • 1970-01-01
  • 2013-08-09
  • 2012-12-27
  • 1970-01-01
  • 1970-01-01
  • 2015-05-26
相关资源
最近更新 更多