将/ home / opencart / public_html / opencart更改为localhost URL(将服务器URL更改为Localhost URL)

时间:2018-06-25 16:32:37

标签: url server localhost opencart

我正在尝试将Hosted Opencart移至XAMPP。 我已将域名更改为localhost / opencart,但不知道如何将这些URL更改为localhost URL

/ home / opencart / public_html / opencart

我尝试在Google中搜索,但未找到任何解决方案。

1 个答案:

答案 0 :(得分:1)

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

<?php
echo __DIR__;

然后在浏览器中运行它:

http://localhost/opencart/find_path.php

您应该在屏幕上看到以下内容:

  

C:\ xampp \ htdocs \ opencart

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

相关问题