Joomla 3.x / VirtueMart 2.x. 如何将网站从子目录移动到根文件夹
二零一四年十一月十九日
Hi there! 您已经将模板安装到文件夹中,只是为了测试它,现在您正在努力解决如何将其移动到文件夹中的问题 root? 以下是你的答案:
Joomla 3.x / VirtueMart 2.x. 如何将网站从子目录移动到根文件夹
- 将所有文件从 sub-目录 (i.e., public_html/tryjoomla)到上层 目录 (i.e., public_html). 你可以用你最喜欢的 FTP 客户端或控制面板 hosting 服务提供.
- 下载并打开 配置.php 文本文件 editor.
- 只需从路径中删除tryjoomla文件夹名称. 看看下面这几行:
Var $live_site = "; Var $log_path = '/home/username/public_html/tryjoomla/logs'; Var $tmp_path = '/home/username/public_html/tryjoomla/tmp'; Var $ftp_root = 'public_html/tryjoomla';
改变:
Var $live_site = "; Var $log_path = '/home/username/public_html/logs'; Var $tmp_path = '/home/username/public_html/tmp'; Var $ftp_root = 'public_html';
N.B. $live_site变量很少需要给定值. 但是,如果在安装过程中给出了一个值,那么也可以编辑该路径.
Var $live_site = 'http://www.example.com/tryjoomla ';
改变:
Var $live_site = 'http://www.example.com';
- 检查你的 .htaccess. 子文件夹也应该被删除.
-
如果你有 cache 启用,登录管理员 backend (现在是 http://www.example.com/administrator and not http://www.example.com/tryjoomla/administrator). Go to Tools -> Clean Cache 然后全部删除 cache files:
请随时查看下面的详细视频教程: