Joomla将整个网站移动到不同的域名 [英] Joomla, move whole site to different domain name

查看:173
本文介绍了Joomla将整个网站移动到不同的域名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个建立在joomla的网站,它的网址是一个网址:



http://oldsite.com



我被要求将其移动到另一个网址 -



http://newsite.com



如果没有搞砸网站和joomla安装,该怎么做?

解决方案

我没有在Joomla中找到任何引用到正在运行的域,所以应该不需要更改任何东西。如果站点名称也更改,请更新/configuration.php。



在实践中,您可能会发现在您的内容中有完全限定域名的链接,您将必须改变如下所示的查询可以帮助您找到它们:

  SELECT * FROM`jos_content` 
WHERE`introtext` like' %mysite.gr%'或`fulltext`像'%mysite.gr%'

如果你是在Linux上,从站点根目录运行以下内容,以确保代码中没有其他引用,例如模板或CSS等中的硬编码映像路径:

  find。 -exec grep -iHmysite{} \; 

检查需要域名的任何自定义规则的网站.htaccess文件。 >

所以问题就是减少到改变现有站点的域,或创建一个新的站点,并移动文件系统中的Joomla安装,和/或创建一个数据库。确切的步骤取决于您的环境。


I have a website built in joomla and it is live on the web at a url:

http://oldsite.com

I have been asked to move it to another url - domain name

http://newsite.com

How should I do this correctly without messing up the site and joomla installation??

解决方案

I did not find any references in Joomla to the domain that it is running under, so there should be no need to change anything. If the site name changes as well, update /configuration.php.

In practice, you may find that there are links with fully qualified domain names in your content that you will have to change. Queries like the following can help you find them:

SELECT * FROM `jos_content` 
WHERE `introtext` like '%mysite.gr%' or `fulltext` like '%mysite.gr%'

If you are on Linux, run the following from the site root directory to make sure that there are no other references in the code, such as hardcoded image paths in templates or the CSS, etc:

 find . -exec grep -iH "mysite" {} \; 

Check the .htaccess file of the site for any custom rules that require a domain name.

So the problem is reduced to changing the domain for an existing site, or to creating a new site and moving the Joomla installation in the file system, and/or creating a copy of the database. The exact steps depend on your environment.

这篇关于Joomla将整个网站移动到不同的域名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆