• Hi there, strange behaviour!

    I moved a wordpress site from mydomain.com to myotherdomain.com

    I have no access to ftp on mydomain.com so I moved the site and it is now cloned on myotherdomain.com

    Now when I want to log in to myotherdomain.com I go to
    myotherdomain.com/wp-login.php and put in the credentials. They are the same as on mydomain.com of course, as it is a clone site.

    Now when I log in I find myself in the backend of mydomain.com and not the backend for myotherdomain.com

    I do not understand why this is so and what I could do about it?

    Can anyone help me get logged into myotherdomain.com?

    Thxs a lot!!!!

Viewing 9 replies - 1 through 9 (of 9 total)
  • Moderator cubecolour

    (@numeeja)

    Try using the Database Search and Replace Script available from https://interconnectit.com/products/search-and-replace-for-wordpress-databases/ First ensure you have a backup of the database. Then upload the script to where WordPress is installed on ‘myotherdomain.com’. Run the script to change all instances of ‘mydomain.com’ to ‘myotherdomain.com’ Once you are done, don’t forget to remove the script immediately.

    Probably the settings for WordPress Address and Site Address (found in Dashboard > Settings > General) are still set to mydomain.com.

    Do you have access to the database for myotherdomain.com? If so, go into the options table and look for those entries and change them appropriately.

    If not, or if you don’t like directly editing DB entries, you can do this via wp-config.php or your theme’s functions.php file. Instructions here.

    Thread Starter anima-in-us

    (@powerprog)

    Hi, thxs for the answers! I run the replace script in my database. Now the front end is all correct, all urls are myotherdomain.com/ etc

    But when I try to log in now, wp-login.php outputs a blank page.
    So I started troubleshooting log in:

    – I tried putting update_option( ‘siteurl’, ‘https://myotherdomain.com’ );
    update_option( ‘home’, ‘https://myotherdomain.com’ )

    in functions.php of the active theme

    _ I tried putting
    define(‘WP_HOME’,’https://myotherdomain.com’);
    define(‘WP_SITEURL’,’https://myotherdomain.com’);

    in wp-config.php

    – I tried setting relocate to true and put the relocate script in wp-login.php

    – I tried disabling all plug-ins by renaming plug-in folder

    – I tried disabling active theme altogether by renaming active theme folder (this gave me blank page on front end)

    I cannot get anything but blank page for wp-login.php

    I’m stumped! In the old page I can access backend, but cannot install plug-ins because the ftp server is corrupted.

    In my new page I can get access to ftp and mysql but cannot get into backend … I don’t know what to do now

    Moderator cubecolour

    (@numeeja)

    what is the actual (new) domain of the website?

    Thread Starter anima-in-us

    (@powerprog)

    The new one – temporarily is: topwebexpansion.com/Karen

    I started from scratch actually now, deleted everything and uploaded everything anew. Now I managed to log in to my backend! Yeah BUT!! All frontend links are broken now. All pages except home give me a Page Not Found error now …

    I guess, if I once get my site running ok and point the nameservers of my old domain to the new site, then these problems will disappear? Hopefully? But I wanted to make sure because I have no way of remaking the site from scratch if anything happened.

    Thread Starter anima-in-us

    (@powerprog)

    I will try again on my XAMPP server at home, maybe then I will get some useful results. If I can get the site working on XAMPP I can install wp clone and get it back to any server I like

    Thread Starter anima-in-us

    (@powerprog)

    I resolved the issue using default settings for permalink structure, but going back to the seo friendly permalink structure gives me the 404 error
    any ideas on that?

    What do you have in your .htaccess file?

    Thread Starter anima-in-us

    (@powerprog)

    The usual redirect I think

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /evo/
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘I get redirected after log in’ is closed to new replies.