Moving Site From One Domain to Another

ADKGamers

New Member
Hello,

So I went through with the upgrade process from aardvard to visio after multiple failed attempts. What I did was move it to a new domain. So what I'm wondering is, if I change the "general settings" domain url after we go through and reskin it to match our current site would that be the only thing that needs to be done for moving the site back to the main domain?


Thanks!
 

Basti

Administrator
Staff member
Aye, the site url is one thing.

If you use the menu manager, then those links also need to be updated.

And then there are stored member banner path's in the database.

Below is a snippet you can run in phpMyAdmin, to make all the changes in 1 go

1) select your database and click the "SQL" tab at the top
2) if you site is not prefixed "VL", then change it accordingly in the snippet below.
If you upgraded from aardvark, it is most likely "ats"
3) also in the snippet below change the urls to reflect your old and new domain

Code:
UPDATE `VL_sites` SET `banner_url` = REPLACE(banner_url, 'http://old-site.com', 'http://new-site.com')

UPDATE `VL_menu` SET `path` = REPLACE(`path`, 'http://old-site.com', 'http://new-site.com');

UPDATE `VL_settings` SET `list_url` = REPLACE(`list_url`, 'http://old-site.com', 'http://new-site.com');

UPDATE `VL_settings` SET `default_banner` = REPLACE(`default_banner`, 'http://old-site.com', 'http://new-site.com');
This would handle all the database stored stuff, unless you have something custom

After that you need to make one edit, found in admin settings under "Button Settings"
There you need to edit the button urls ( static button url etc ), and click save. You need to do this because those are not stored in database but a file on ftp, which will update upon saving the setting
Or you do this manually via ftp file editing button_config.php


And, well if you have existing old members, you either have to mail them to update their link codes or setup a redirect on your old domain to forward every request to the new domain.
Else all their html voting codes wont work
 

ADKGamers

New Member
Thanks for the response.

It all makes sense, and is easy enough. But I don't think I'd need the members to update the code because www.domain1.com is still going to be the main domain. I'm just updating the site on www.domain2.com and then going to move that over to www.domain1.com which is what they are using now. Hope that makes sense.


Thanks again!
 
Top