1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Wp-admin redirect to another wordpress login site.

Discussion in 'Domain Names & Parking' started by jackorz, Dec 20, 2016.

  1. jackorz

    jackorz Newbie

    Joined:
    Dec 13, 2016
    Messages:
    21
    Likes Received:
    4
    Gender:
    Male
    Hey,

    I registered an expired domain, installed Wordpress but when i try to go mysite.com/wp-admin it redirects me to antohersite.com/wp-admin.

    What can i dot to solve that?
     
  2. lawyal

    lawyal Regular Member

    Joined:
    Oct 25, 2016
    Messages:
    322
    Likes Received:
    210
    Gender:
    Male
    Location:
    Upper Eastside
    Seems more like a DNS/nameserver problem. Are you sure that the URL is connecting to the right (name)server? Have you checked the (reverse) IP?

    Another reason could be the main URL in Wordpress. Perhaps you copied the install from another websiteand didn't change the site url? Also did you empty your cache?
     
  3. Hawkster

    Hawkster Jr. VIP Jr. VIP

    Joined:
    Jun 22, 2013
    Messages:
    3,507
    Likes Received:
    3,721
    Gender:
    Male
    Occupation:
    Listen to everyone - Follow no-one
    Location:
    UK
    Home Page:
  4. shifubill

    shifubill Jr. VIP Jr. VIP

    Joined:
    Oct 5, 2013
    Messages:
    294
    Likes Received:
    45
    Check with your host and make sure the domain is set properly in the zone registry. Also try clearing your cache or logging in from a different computer.
     
  5. jackorz

    jackorz Newbie

    Joined:
    Dec 13, 2016
    Messages:
    21
    Likes Received:
    4
    Gender:
    Male
    No, the other site is not mine. The nameservers are ok, if i go to mysite.com it is my web, with the just installed wordpress and the automatic post, so is my site. But when i go to wp-admin it redirects to another site.

    another thing i just discovered is that if i install wordpress without httpswww. and just http it does not redirect.
     
  6. shifubill

    shifubill Jr. VIP Jr. VIP

    Joined:
    Oct 5, 2013
    Messages:
    294
    Likes Received:
    45
    It does sound like the domain didn't register properly in your hosts zone records. I'd have them look at it before anything else.
     
    • Thanks Thanks x 1
  7. lawyal

    lawyal Regular Member

    Joined:
    Oct 25, 2016
    Messages:
    322
    Likes Received:
    210
    Gender:
    Male
    Location:
    Upper Eastside
    Yep, could be n SSL or zone problem. Better check for all records to be addressed properly.
     
    • Thanks Thanks x 1
  8. jackorz

    jackorz Newbie

    Joined:
    Dec 13, 2016
    Messages:
    21
    Likes Received:
    4
    Gender:
    Male
    Well, its the SSL. I tried installing my own SSL (cloudflare free SSL) but it doesnt work, dont know what to do anymore :'(.

    Thank you anyway guys :)
     
  9. bartosimpsonio

    bartosimpsonio Jr. VIP Jr. VIP Premium Member

    Joined:
    Mar 21, 2013
    Messages:
    12,492
    Likes Received:
    11,190
    Occupation:
    CHEAP
    Location:
    DATASETS
    Home Page:
    The problem is in your database.

    You need to manually edit the config table using SQL and change the root URL to the new domain.

    What I do is mysqldump, then substitute all mentions of old URL to new URL, then recover the dump. Easier than going one by one in SQL.
     
  10. Mex

    Mex Jr. VIP Jr. VIP

    Joined:
    Aug 31, 2016
    Messages:
    187
    Likes Received:
    67
    I also think that the problem is in your database.
    On your cpanel open phpmyadmin, click on your wp database, look for 'wp_options' table, then on 'option_name' column look for 'siteurl' and check that your site name is correct.
     
  11. Terminal15

    Terminal15 BANNED BANNED

    Joined:
    Jun 9, 2015
    Messages:
    218
    Likes Received:
    52
    Gender:
    Male
    You might wanna use Wordpress search and replace script. (Only if its not a DNS issue)

    Step 1: Download this script
    https://interconnectit.com/products/search-and-replace-for-wordpress-databases/

    Step 2: Upload it to your directory where you installed Wordpress

    Step 3: Rename the file searchreplacedb2.php to somethingelse.php

    Step 4:
    Open the file http://yourwebsite.com/somethingelse.php

    Step 5: type in the domain name anothersite.com
    in the search field and your domain name in replace with field.

    Click replace it will populate your database click okay and you are done.

    Side Note: Above mentioned steps are for the script 2.1.0 not 3.0

     
  12. jackorz

    jackorz Newbie

    Joined:
    Dec 13, 2016
    Messages:
    21
    Likes Received:
    4
    Gender:
    Male
    Thank you. I did that at the start but the siteurl and homeurl were good.

    I believe is the ssl. When i try with the https It says that my site is not secure because the ssl IS only for theothersite.com then It redirects me to the other site
     
  13. chris barker

    chris barker Jr. VIP Jr. VIP

    Joined:
    Dec 25, 2009
    Messages:
    393
    Likes Received:
    64
    Open phpmysql admin

    go to wp-options table

    make sure your current site is pointed correctly..