Move website - domain1 to domain2

Discussion in 'General' started by smokinjo, Jan 21, 2025.

  1. smokinjo

    smokinjo Member

    Hello
    I have a domain that I want to move from domain 1 to domain 2.
    It is a wordpress site.
    When looking at it, can I:
    1 - rename the domain in the website section? domain1 to domain2
    2 - change the website to whcih the database is associated.domain1 to domain2

    Thanks for any guidance.

    Joseph
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Why don't you just change the domain name in the domain field of the website? Afterward, you have to log into WordPress and change the domain name there, too.
     
  3. smokinjo

    smokinjo Member

    Thanks Till.

    This is what I had in mind too. Forgot about changing it in the word press config as well. Thanks

    But, will I need ot adjust the database as well? I ask because the database is assigned to a domain. Can I just change the domain that the database is attached to?

    Thanks

    Joseph
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    no
     
  5. Turgut Kalfaoglu

    Turgut Kalfaoglu Member HowtoForge Supporter

    There is a wordpress search-and-replace tool somewhere out there. It searches the entire wordpress database for whatever you want and it replaces it with the new stuff. It works great for changing domains or paths. Just type things carefully!
    PS: I think it was this: https://interconnectit.com/search-and-replace-for-wordpress-databases/
    for me their older version worked better.
     
  6. nhybgtvfr

    nhybgtvfr Well-Known Member HowtoForge Supporter

    there's a few different wp plugins for editing the db.

    nothing beats using wp-cli though. faster. and does so much more.. can even completely install WP from scratch with it.
     
    Turgut Kalfaoglu likes this.

Share This Page