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 7 of 7
  1. #1
    New Coder
    Join Date
    Jun 2015
    Posts
    48
    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
    48
    Thanks
    0
    Thanked 0 Times in 0 Posts
    anyone?

  3. #3
    Senior Coder durangod's Avatar
    Join Date
    Nov 2010
    Location
    southwestern USA
    Posts
    1,942
    Thanks
    339
    Thanked 49 Times in 47 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 09:03 AM.
    Remember in PHP you shoot Objects with arrows Example: $name->id; then Arrays are $name['id'];

  4. #4
    Administrator VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    10,924
    Thanks
    6
    Thanked 1,315 Times in 1,285 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
    48
    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
    1,942
    Thanks
    339
    Thanked 49 Times in 47 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 11:35 PM.
    Remember in PHP you shoot Objects with arrows Example: $name->id; then Arrays are $name['id'];

  7. #7
    Administrator VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    10,924
    Thanks
    6
    Thanked 1,315 Times in 1,285 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/


 

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
  •