Forums

Moved site out of a multisite -> /wp-admin keeps redirecting (26 posts)

  1. Rein Aris
    Member
    Posted 5 months ago #

    Yesterday I moved a website from a multisite to a different server. It wasn't the 'main' website of this multisite setup but it had blogid 2.

    Here is what I did:
    - Copied all the files to the new server
    - Removed multisite stuff from wp-config.php
    - Removed the sunrise.php files and more multisite stuff
    - Copied the original database
    - Removed all the tables I didn't need (from other blogs)
    - Replaced the old URL with the new URL in the DB
    - Replaced the path of the uploads in the DB and placed the uploads in the normals /uploads directory in stead of the blogs.dir..
    - Importered the database
    - Voila! WordPress whas running fine

    And now everything is working, the frontend is good, backend is good but... If I go to /wp-admin it keeps redirecting me to the old domainname!
    Trust me:
    - The name isn't in the database anymore
    - The domainname isn't hardcoded in any file

    So I can login with /wp-login.php so I can access the backend but it's just strange!

    Off course I tried to clear my cache and tried to use another browser. No success.

    Can anyone help me with this issue?

  2. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 5 months ago #

    Did you edit your .htaccess back to normal WordPress?

  3. Rein Aris
    Member
    Posted 5 months ago #

    Yes I did, forgot to mention that.

  4. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 5 months ago #

    How long ago did you change the DNS to point to it's own install and not your MultiSite?

  5. Rein Aris
    Member
    Posted 5 months ago #

    I didn't change a DNS yet. The website is running on a testserver so I didn't had to change it.

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

    Oh, well that would do it. The domain's still pointing to the old server :) Weird things will happen. Like when a baby monitor picks up our neighbor's cordless phone.

  7. Rein Aris
    Member
    Posted 5 months ago #

    Thanks for your help Ipstenu, but I still don't get it :)

    I moved the website from:
    http://www.olddomain.com
    to
    http://testsite.completenewdomein.net

    There isn't a relationship between the new server and the old server? So how could a DNS wreck this? Or am I getting it wrong?

    Thanks!

  8. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 5 months ago #

    Ah you were unclear in what you did. FYI, it's really helpful when you're specific of 'this was my old setup, this was my new.'

    NORMALLY when people say they moved a domain out of multisite, what they mean is that they had sitename.domain.com (or domain.com/sitename) with sitename.com mapped to it. But NOW they want it to be it's own site.

    I'm still a little confused as to what you did and where you're going with this, though, since what you described SOUNDS like you had olddomain.com MAPPED somewhere.

  9. Rein Aris
    Member
    Posted 5 months ago #

    Sorry I will describe the situation again:

    - I had a multisite with 3 websites running on http://www.site-a.com. One of the multisites was called http://www.iwanttomovethis.com and the domainname was mapped to http://www.site-a.com because the 'website/files' where running there. So I used the domain mapping plugin to do this and of course the DNS was pointed there.

    - Then the client decided http://www.iwanttomovethis.com had to run on his own server. So I pulled this website out of the multisite and installed a new standalone WordPress on a testserver named http://itshouldbehere.anotherdomain.com.

    In my first post on this topic I described how I moved the website.

    Now everything is running fine except the /wp-admin redirect to the old domain http://www.iwanttomovethis.com.

    You get it :)?

  10. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 5 months ago #

    What is http://itshouldbehere.anotherdomain.com?

    Is it a multisite or a stand alone single site?

  11. Rein Aris
    Member
    Posted 5 months ago #

    It's a stand alone single site.

  12. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 5 months ago #

    And you replaced, in the DB, every instance of ... iwanttomovethis.com with itshouldbehere.anotherdomain.com right?

    Sorry, I'm stepping back to take on each step one at a time since I think we got tangled :)

  13. Rein Aris
    Member
    Posted 5 months ago #

    Yes I replaced every instance and also checked for hardcoded url's in the files.

  14. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 5 months ago #

    Did you look for JUST iwanttomovethis? Multisite is weird about that...

  15. Rein Aris
    Member
    Posted 5 months ago #

    I thought I did but I will double check it again. I'll keep you updated, will check this on monday.

  16. Rein Aris
    Member
    Posted 5 months ago #

    I just exported the database and searched for iwanttomovethis as a single word. One match but that had something to do with the stylesheet directory.. (theme has the same name).

    So it looks like it isn't in the DB.

  17. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 5 months ago #

    Twi things...

    1) In your wp-config.php, go over that with a fine toothed comb.

    2) Also make new keys and salts:

    https://api.wordpress.org/secret-key/1.1/salt/

  18. Rein Aris
    Member
    Posted 5 months ago #

    No success :(

    It's weird!!

  19. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 5 months ago #

  20. Rein Aris
    Member
    Posted 5 months ago #

    Well I only discovered a 301 redirect. But it's not in .htaccess and not in a redirect plugin..

    Details are:

    HTTP/1.1·301·Moved·Permanently(CR)(LF)
    Date:·Mon,·19·Dec·2011·15:31:40·GMT(CR)(LF)
    Server:·Apache(CR)(LF)
    Location:·http://www.olddomain.com/wp-admin/(CR)(LF)
    Content-Length:·311(CR)(LF)
    Connection:·close(CR)(LF)
    Content-Type:·text/html;·charset=iso-8859-1(CR)(LF)
    (CR)(LF)

    Also not in a admin panel (like directadmin) because this server is brand new..

  21. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 5 months ago #

    That's what's doing it... but where is that? o.O

  22. Rein Aris
    Member
    Posted 5 months ago #

    Yes that's the question. It's not a big problem but I want to understand!

  23. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 5 months ago #

    Check if there's a .htaccess in the wp-admin folder?

  24. Rein Aris
    Member
    Posted 5 months ago #

    No there isn't..

  25. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 5 months ago #

    Double chck your admin panel. Something on the server's doing that :/

  26. Rein Aris
    Member
    Posted 5 months ago #

    I will do a checkup in a while and keep you posted.

    Thanks for your time!

Reply

You must log in to post.

About this Topic