Forums

Lost site due to switching of domain name (10 posts)

  1. indiependence
    Member
    Posted 6 months ago #

    I bought two domain names when i started my website and the guy that did it put the wrong domain name for the website. i took it upon myself to change the domain and i ended up not being able to get back in. every time i try to go to my back office it send me to this page which is what the domain is supposed to be: http://indiependence.tv/wp-login.php?redirect_to=http%3A%2F%2Fwww.indiependencemedia.com%2Fwp-admin%2F&reauth=1

    this is what comes up when i go to indiependencemedia.com

  2. esmi
    Theme Diva & Forum Moderator
    Posted 6 months ago #

  3. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 6 months ago #

    Are you trying to change the domain name on MULTISITE or on a single site install of WP?

    If it's multisite, you have to search the DB and change all instances.

  4. esmi
    Theme Diva & Forum Moderator
    Posted 6 months ago #

    Oops - Sorry. My bad! I didn't spot that I'd landed in the Multisite forum.

  5. indiependence
    Member
    Posted 6 months ago #

    i'll be honest im not tech savy at all, so i dont know if its multisite or not, but im pretty sure its a multisite and if its not please let me know.

  6. brasofilo
    Member
    Posted 6 months ago #

    probably you don't have WordPress MultiSite installed...

    what's the behavior of the domains? one is redirecting to or mirroring the other?

    either way, everything is pretty messed up, and your only way out is to do a search and replace in the database, as Ipstenu said... and the document esmi provided will be useful for you to understand and correct the error

    do you have backups of the database?

  7. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 6 months ago #

    You'd know if you had multisite :) Punting out to general how to.

    There are a couple things at play here, and most importantly is making sure WP points to the right place. Read esmi's link and see if that gets you up and running.

  8. indiependence
    Member
    Posted 6 months ago #

    to brasofilo: yes its redirecting to the site i put in and your right everything is messed up. and i have no backups of the database, so does that mean i'll have to put back every post i made so far.

    thank you and i will mess with it and post something when i figure it out a little bit more... thank you again for your help

  9. brasofilo
    Member
    Posted 6 months ago #

    i'd do it this way:
    - from your site control panel, access PhpMyAdmin
    - export the database that contains you WP as a SQL file to your computer
    - make sure this option is active Add DROP TABLE / VIEW / PROCEDURE...
    - rename the file to something like "DB-messed.sql" and make a copy "DB-correct.sql"
    - open the copy in a pure text editor (NotePad++ or similar)
    - search for all the occurrences of "wrongdomain.com" and replace them with "correctdomain.com"
    - save and import this back into the database
    - check the site, should be working now

    before proceeding with the search/replace
    from what i saw there's a confusion of where the folder "wp-content" is located
    - make sure that you can access "http://correctdomain.com/wp-content/uploads/..../name-of-the-file.jpg"
    - probably, you'll need to do adjustments in the domain's control panel to check which one is active, which one is redirecting

  10. indiependence
    Member
    Posted 6 months ago #

    I dont have access to the control panel. everytime i try to go to log in it redirects me to the other messed up site

Reply

You must log in to post.

About this Topic