Change /home/opencart/public_html/opencart to localhost URL (Change Server URL to Localhost URL)

Change /home/opencart/public_html/opencart to localhost URL (Change Server URL to Localhost URL)

我正在尝试将 Hosted Opencart 移动到 XAMPP。 我已将域名更改为 localhost/opencart 但不知道如何将这些 URL 更改为本地主机 URL

/home/opencart/public_html/opencart

我尝试在 google 中搜索,但没有找到任何解决方案。

这取决于您要安装 OpenCart 的文件夹。 您需要找到目录的绝对路径。例如,如果您想将 OpenCart 安装在名为 opencart 的目录中,请在该文件夹中创建一个 find_path.php 文件,内容如下:

<?php
echo __DIR__;

然后 运行 在您的浏览器中:

http://localhost/opencart/find_path.php

您应该会在屏幕上看到类似这样的内容:

C:\xampp\htdocs\opencart

另一种方法是在您的本地主机上安装一个新的 OpenCart,然后查看由 OpenCart 填写的 config.php 文件。