【发布时间】:2018-12-04 07:14:01
【问题描述】:
我正在尝试将 Hosted Opencart 移至 XAMPP。 我已将域名更改为 localhost/opencart 但不知道如何将这些 URL 更改为 localhost URL
/home/opencart/public_html/opencart
我尝试在 google 中搜索,但没有找到任何解决方案。
【问题讨论】:
标签: url server localhost opencart
我正在尝试将 Hosted Opencart 移至 XAMPP。 我已将域名更改为 localhost/opencart 但不知道如何将这些 URL 更改为 localhost URL
/home/opencart/public_html/opencart
我尝试在 google 中搜索,但没有找到任何解决方案。
【问题讨论】:
标签: url server localhost opencart
这取决于您要安装 OpenCart 的文件夹。
您需要找到目录的绝对路径。例如,如果您想在名为 opencart 的目录中安装 OpenCart,请在该文件夹中创建一个 find_path.php 文件,其中包含以下内容:
<?php
echo __DIR__;
然后在浏览器中运行它:
http://localhost/opencart/find_path.php
您应该会在屏幕上看到类似这样的内容:
C:\xampp\htdocs\opencart
另一种方法是在你的localhost中安装一个全新的OpenCart,然后查看OpenCart填写的config.php文件。
【讨论】: