Forums

[resolved] wp-admin redirects to non-existing url (6 posts)

  1. Viraxation
    Member
    Posted 1 year ago #

    Hi guys,

    I've Googled for a while now but can't seem to find a solution to this problem I'm facing.

    * I had two domains. http://www.domain1.com and http://www.domain2.com.
    * I installed WordPress on http://www.domain2.com/blog
    * Then it got inactive and I cancelled my http://www.domain2.com

    Now I'd like to revive that website again. I can't go to http://www.domain2.com/blog/wp-admin anymore since http://www.domain2.com doesn't exist anymore. When I move the blog folder to http://www.domain1.com and try to go to http://www.domain1.com/blog/wp-admin it automatically redirects to http://www.domain2.com/blog/wp-admin which, like I said before, doesn't exist anymore.

    So now I'm here hoping that someone can tell me how I can save this site/blog including all the posts/comments on http://www.domain1.com. I know it wasn't the brightest move to make to cancel that second domain, but I had forgotten that blog completely.

    Thanks in advance.
    Viraxation

  2. yellhow
    Member
    Posted 1 year ago #

    You try to backup the domain2.com database files and data to your computer, then remove the WordPress and reinstall it again. This may solve your problem. This is the quickest suggestion, I can give you.

    You must wait for some more time to get the accurate suggestion/advise/solution.

    Thanks, Have a nice day!
    YellHow

  3. Dave Redfern
    Member
    Posted 1 year ago #

    The problem is your database contains links to domain2.com. Moving a WordPress install isn't as simple as dragging and dropping the files. You'll need to download the database and do a search and replace for domain2.com to domain1.com then reupload the database.

    That should fix all your issues.

    For more info on moving your WordPress blog visit http://codex.wordpress.org/Moving_WordPress or I did a post on this at http://www.daveredfern.com/blog/6-steps-to-easily-move-your-wordpress-website/.

    Thanks and good luck.

    Dave.

  4. Viraxation
    Member
    Posted 1 year ago #

    Thanks YellHow and Dave,

    I'm gonna try moving the blog and changing the database. I have to admit I know a thing or two about WordPress and websites, and I also remember that you have to change the blog url in wp-admin before moving the folder. But I'm too late for that now unfortunately.

    My database knowledge is about close to zero, so I'm always a bit afraid to change stuff in there. I've thought about making a backup, but I guess the wrong URL will be there in that backup as well so it won't help. Next to that my special characters like é or á etc always change in some weird code after I apply a backup. So that's why I try to avoid using back ups.

    Anyway, thanks again :)

  5. yellhow
    Member
    Posted 1 year ago #

    If you have sorted out the problem, Please change the status of this thread to RESOLVED so that any forum members or moderators do not enter to this to help you!

    Thanks
    YellHow

  6. Viraxation
    Member
    Posted 1 year ago #

    The problem is resolved, especially thanks to Dave. I'm either blind or a really bad Googler, but http://codex.wordpress.org/Moving_WordPress contained the solution to the problem:

    If you forget to change the WordPress Address and Blog Address, you will be unable to change it using the wordpress interface. However, you can fix it if you have access to the database. Go to the database of your blog and find the wp_options table. This table stores all the options that you can set in the interface. The WordPress Address and Blog Address are stored as siteurl and home (the option_name field). All you have to do is change the option_value field to the correct URL for the records with option_name=’siteurl‘ or option_name=’home‘.

    And indeed. I changed the siteurl and the home id to the correct URL and it worked. Took about 30 seconds.

    Thanks again Dave :)

Topic Closed

This topic has been closed to new replies.

About this Topic