Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 14 of 14
  1. #1
    New Coder
    Join Date
    Jun 2015
    Posts
    52
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Building a new website on another domain while main stays active - how to code & move

    So my main website is ohiocannabis.com and it's on the Invision Power Services platform & I am redesigning a completely new one on the wordpress platform.

    However, I do not want any downtime while I'm building and designing the other one, so i thought I would build the new site entirely on a separate domain.

    It's already setup & live on ohiomarijuana.com

    My question is, when were building links, photos, etc we can try to manually set photos and links & other stuff to ohiocannabis.com, but isn't wordpress going to write a lot of stuff as ohiomarijuana.com?

    So how do we change all of that info easily when we do the data base transfer?

    Also, what happens to all of the links and stuff out there now for all of my current ohiocannabis.com related material, it's basically going to be worthless and I would lose all of my google rankings and everything won't I? It will be like starting from scratch again won't it?

    Second of all, if I am doing this correctly and I need to do a database transfer when finished - this is not an easy task is it? I'm pretty good when it comes to back end hosting stuff, but have never done this before. I know to make backups before hand. My hosting is also with hostgator, any idea if they'll do something like this for free? If not is there a trusted member I could hire for a reasonable fee to do this database move for me?

  2. #2
    New Coder
    Join Date
    Jun 2015
    Posts
    52
    Thanks
    0
    Thanked 0 Times in 0 Posts
    anyone?

  3. #3
    Senior Coder durangod's Avatar
    Join Date
    Nov 2010
    Location
    southwestern USA
    Posts
    2,001
    Thanks
    342
    Thanked 54 Times in 52 Posts
    Hi,

    It would help if you can make as many links as possible (in the code) dynamic so that all you would need to do is change one config setting and done. Do you have similar table names in both DB along with similar field names? If not youll have to put together a simple importer bridge which is easy enough to do, you just need to know what the originating value is and where it should go in the new DB. However this rides on the fact that the fields are structured the same, ie integer field to a enum field wont work.

    Personally i think you have quite a challenge on your hands, it can be done but its a challenge for sure. And the bottom line is that there will be issues doing this unless you are a paid professional. Its sort of like trying to fit two pieces of jello together with no seam.

    Maybe the better question would be why are you moving away from your current platform? It might be more cost effective to stay where you are and just spend the money to fix any issues you have.

    PS... we really dont need the site names, at least i dont... and it might be better to remove them anyway due to some people having a huge dislike for that entire business.
    Last edited by durangod; 01-15-2018 at 08:03 AM.
    If a php file only has php code within it you do not need to use the closing php tag
    A good way to remember objects from arrays is you shoot objects with arrows Example: $name->id; then Arrays are $name['id'];
    durangod is short for durango dave

  4. #4
    Administrator VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    11,017
    Thanks
    6
    Thanked 1,324 Times in 1,294 Posts
    Quote Originally Posted by durangod View Post
    It would help if you can make as many links as possible (in the code) dynamic so that all you would need to do is change one config setting and done.
    Or make them relative, i. e. without any domain name.

    Also, you could just develop your new website on a subdomain of the current domain (e. g. “test.example.com”) and then, once you’re done, with the click of a few buttons, switch the main domain to point to the former development/staging environment. And if something doesn’t work you can also switch back and fix what’s wrong, and then switch forward again.

  5. #5
    New Coder
    Join Date
    Jun 2015
    Posts
    52
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I know posting the domains may not be kosher with some, but at the same time, how is someone REALLY supposed to diagnosis my problems if they can't visit the site and check on things? I feel I'm being very professional and not trying to solicit or spam anything, I truly need the great advice this place offers. It is now a legal in more than 50% of US states, we need to be adults & stop pretending there isn't a big green elephant in the room. I REALLY appreciate everyone's help and advice on this board, I feel it's a wonderful community and have been extremely helpful over the years. I had another name previous to this one and I lost login, but I've been around for several years at this point getting help.

    The reason I am moving is because I am currently on a paid platform called Invision Power Services, and while I do like the platform, I don't love it and wordpress is obviously king in web development categories of CMS. There is so much support and extras and I'm familiar with it from a few years ago and have been brushing up again on it lately. It just makes sense to move/redevelop my platform now.

    Great advice from both, I think sewing two seamless pieces of jello together is NOT what I want to do lol I was only doing it this way because I didn't know how else to do it. But I think The suggestion from VIPStephen to develop it on a subdomain like test.example.com is the correct & best way to do it that I was looking for, does anyone know of a great walk-thru for setting this up initially, with wordpress in-particular?

    But in the end will the main domain always be forwarded, or once the site is completed I can setup it up in a way that the subdomain goes away and there is no forward needed? That would be my only hold up before completely revamping the original domain and shutting it down until the new one is ready to go.

    I could always put up a splash/landing page saying we are re-developing for re-launch? It might even create some good hype and make coding so much easier.

  6. #6
    Senior Coder durangod's Avatar
    Join Date
    Nov 2010
    Location
    southwestern USA
    Posts
    2,001
    Thanks
    342
    Thanked 54 Times in 52 Posts
    You dont need to post domains because that is why we ask you to post code if necessary. We also dont really need the domains in order to help with best process in ways of doing things as a global practice. So the bottom line is we dont need your domain names. I have been a part of this community for a long time and i have never been required to share my domain names to receive or offer assistance.

    If you lost your last login there are ways to retrieve that data. If you cant use the provided process for some reason you can always contact the site moderators and ask them to help you. You should never have to create a new account.

    You will find over time that WP is actually king of nothing, they have many issues just like other platforms.

    A maintenance page of some kind is not a bad idea if you do not intend to entertain users during the process.

    Yes once you get the sub domain done, if done correctly you can easily move it into place and then just flip the switch. However if you are going to do a maintenance page then why do the sub domain. Just build it in the main place or move the main domain to the sub domain and then build it in the main space, and use the sub for reference.

    Hope that helps.
    Last edited by durangod; 01-20-2018 at 10:35 PM.
    If a php file only has php code within it you do not need to use the closing php tag
    A good way to remember objects from arrays is you shoot objects with arrows Example: $name->id; then Arrays are $name['id'];
    durangod is short for durango dave

  7. #7
    Administrator VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    11,017
    Thanks
    6
    Thanked 1,324 Times in 1,294 Posts
    Developing on a different domain is useful if you have a running website that you donít want to take offline while developing. So, if you donít care about that there is no need for a sub domain or whatever, as durangod suggested.

    My process on shared servers was like this:

    1. In the hostís control panel, create a directory for your new site in the web root.
    2. Create a sub domain and link it to that newly created directory
    3. Copy your CMS file in that directory and install it on the subdomain
    4. When finished, either redirect your main domain to the directory with the new site (quickest and least intrusive way) or delete your old siteís files (or move them to a temporary directory) and move your new websiteís files to the web root.

    Note, however, that Wordpress requires a change of domain names in the database, too. That is a stupid thing with Wordpress, to be honest. I know other CMSs that donít have the domain names in the database; the only thing that might be necessary is a change in some config file. There is a nice script to change strings in a database at https://interconnectit.com/products/...ess-databases/

  8. #8
    New Coder
    Join Date
    Jun 2015
    Posts
    52
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ok well first problem, I am no longer paying for my current CMS, so they are being less than helpful on how to export my data, even though I've spent well over $1000 with them.

    I am really just interested in exporting my blogs to wordpress, there is a lot of valuable content there. The rest of the stuff on the website is easy to reproduce.

    This is what the paid CMS said:

    the method to backup your community would be to perform a mysqldump of your database and a tar of your forums files though. Your hosting provider can assist you with both of those items as they are both done at a server/hosting level of access normally.

    I contacted hostgator and they gave me some generic answer of backing up my website.

    But the regular backup I do within the hostgator cpanel is NOT the same as this mysqldump of the database is it?

    Is there just an EASY way to export all of my blogs from Invision Power Services platform over to Wordpress?

    Thanks!

  9. #9
    Senior Coder durangod's Avatar
    Join Date
    Nov 2010
    Location
    southwestern USA
    Posts
    2,001
    Thanks
    342
    Thanked 54 Times in 52 Posts
    The normal /home backup that you do with cpanel has everything you need, website pages, database, everything you would need to restore the site. The only difference is that the sql files are not custom meaning they are structure and data combined.

    So what i would do is go to cpanel, go to backups, click on where it says download a complete backup and create a backup and download that. But download that in two dif ways, download it using the cpanel download option, then download it again using ftp. The reason is that i have had times where one of the other option (or the backup process itself) has corrupted file names or sql files. So downloading both ways will be better.

    Then just so you have it, i would go into phpMyAdmin and download just the database structure, then the data seperately, and you can even download the database with data and structure together just to have it as a extra copy if you want. Sometimes having the three types comes in handy and its always better to have it and not need it, than to need it and not have it.

    Then after you all that backed up, downloaded, and in your pocket, you can pretty much tell them to piss off because you have all your data under your control.

    Just remember that you need to do this process with each cpanel account and every database you have.

    Hope that helps...
    If a php file only has php code within it you do not need to use the closing php tag
    A good way to remember objects from arrays is you shoot objects with arrows Example: $name->id; then Arrays are $name['id'];
    durangod is short for durango dave

  10. #10
    New Coder
    Join Date
    Jun 2015
    Posts
    52
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ok I am going to do this full backup tonight.

    Even if I re-populate all of my blogs, I'm going to lose all of my current SEO rankings aren't I?

    Is it possible to import JUST blogs data into wordpress from this backup?

    Would each blog need to be fix/adjusted in any way? What about the images that some of the blogs have in them, would these be populated when importing them back into wordpress?

  11. #11
    New Coder
    Join Date
    Jun 2015
    Posts
    52
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by durangod View Post
    go into phpMyAdmin and download just the database structure, then the data seperately, and you can even download the database with data and structure together just to have it as a extra copy if you want.
    Ok so I'm in phpMyAdmin but not sure exactly what to do or where to find the database structures & the data for download? Any help on walking me through this last bit?

    Thank you!

  12. #12
    Senior Coder durangod's Avatar
    Join Date
    Nov 2010
    Location
    southwestern USA
    Posts
    2,001
    Thanks
    342
    Thanked 54 Times in 52 Posts
    First click on the database you want to open on the left panel, then up at the top of phpMyAdmin there are options, click on export, first take the default and then just run it. This will give you the whole deal, structure and data for that database. Then after that you will need to choose the custom version in the export menu. First structrure only, then data only and you will find those options as you scroll down on the export page options in custom. Be sure that your whole database is highlighted in the table portion, it should be by default if you have the database highlighted on the left pain.

    Yes if you change domain names you will lose your SEO.. sorry

    If you have wordpress already and the same versions (wordpress to wordpress) yes you can import the data back. The images will need to be reuploaded. I do not know how wordpress does its image urls but if they are hard coded full urls, then youll have to fix that in the new database. Remember that your database does not hold the actual images, it only stores the location, so youll have to find those images and reupload them.
    Last edited by durangod; 02-12-2018 at 09:02 AM.
    If a php file only has php code within it you do not need to use the closing php tag
    A good way to remember objects from arrays is you shoot objects with arrows Example: $name->id; then Arrays are $name['id'];
    durangod is short for durango dave

  13. #13
    New Coder
    Join Date
    Jun 2015
    Posts
    52
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ok so I did that, those files seemed to download instantly when they became sql files, but the full backup I did last night took a couple of minutes - so did I not export the phpmyadmin file correctly perhaps?

    And it's not a WP to WP transfer, IPS to WP

    And the domain will be the same once I get WP setup, but all of the hyperlinks throughout the internet are now going to be broken won't they? Or would they all still somehow at least redirect to the website in general to retain the overall traffic, even though they may come to a 404 or something?

    Thanks.

  14. #14
    Senior Coder durangod's Avatar
    Join Date
    Nov 2010
    Location
    southwestern USA
    Posts
    2,001
    Thanks
    342
    Thanked 54 Times in 52 Posts
    sql files download pretty quickly unless the db is really huge, so you are ok.

    youll have to search google to see if there is a IPS to WP import bridge, take a look at the wp plugins too its possible that someone might have done one already. However nothing is perfect and you may end up having to tweak some data in the end.

    if the domain is the same then youll keep your seo depending on how long the site is down for, if google spider sees a bunch of 404's it may remove them from the index. If the site is going to be down for a bit i would do some custom error pages letting people know what is going on or atleast have some kind of maintenance page they can read.
    If a php file only has php code within it you do not need to use the closing php tag
    A good way to remember objects from arrays is you shoot objects with arrows Example: $name->id; then Arrays are $name['id'];
    durangod is short for durango dave


 

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •