WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Domain name change (13 posts)

  1. antonel1
    Member
    Posted 3 years ago #

    Hello,

    I recently contacted my web host (justhost.com) and changed my domain name. My wordpress blog was connected to my previous domain name (ie. http://www.website.ca/blog) Now when I try to login into my wordpress account using my new domain name (http://website.com/wordpress/wp-login.php) I can no longer log in. How can I solve this problem? Have a lost my wordpress account?

    Thank you for you help.

    Antonella

  2. christogeretz
    Member
    Posted 3 years ago #

    Try updating your blog address via mysql login .. table 'wp_options'.

  3. antonel1
    Member
    Posted 3 years ago #

    Please, explain further on how I can do this.

  4. christogeretz
    Member
    Posted 3 years ago #

    Somehow (details vary according to webhosts) log into mySQL, navigate to table 'wp_options' and right there should be your blog address. Change it to the correct one, and see if that has any impact.

  5. antonel1
    Member
    Posted 3 years ago #

    Hmm, I have MySQL Databases, MySQL Database Wizard, phpMyAdmin, and Remote MySQL, none of which show wp_options.

  6. christogeretz
    Member
    Posted 3 years ago #

    phpMyAdmin!

  7. antonel1
    Member
    Posted 3 years ago #

    Genius! It worked. Thank you!

    I actually changed 3 that had the previous address. Would there be many to change? Is there a way to have one change all of them so that I don't have to sort through the tables?

    Again, thank you!

  8. antonel1
    Member
    Posted 3 years ago #

    Oh, for example, I noticed the images in the blog are linked to the older domain name. So now they won't upload. The images are blank.

  9. antonel1
    Member
    Posted 3 years ago #

    Does anyone know how I can fix all the images with the new domain name?

  10. antonel1
    Member
    Posted 3 years ago #

    I have now updated my blog address via mysql phpMyAdmin, as christogeretz suggested above. However, the pictures still remain titled with the older domain name. And so the picture appear blank in my blog. How can I fix this problem? It appears I need to upload each image again. Is there an easier way to do this?

  11. duramatters
    Member
    Posted 3 years ago #

    I don't think there is a database solution to that. you have to go to each page/post and change the URL in the code view. Each Image has a code for img src="..." with the source being the url for the image (where it is stored) your site. You probably just need to change the part between the // and the .com - but one at a time, for each image on each page/post. If there is a more automated solution, I don't know it. Good luck!

  12. christogeretz
    Member
    Posted 3 years ago #

    Yep! You can use an FTP program (FileZilla is a good one), upload all the files to the same location, then just change the references.

    So if you're trying to find a picture at http://www.oldblog.com/wp-content/uploads/photo.png what you've got to do is put photo.png in the folder http://www.newblog.com/wp-content/uploads/ and then just go into the html editor and update the link.

    A super quick way to do this is to use the Broken Links Checker plugin :)

  13. antonel1
    Member
    Posted 3 years ago #

    Thanks christogeretz & duramatters for all your help. I will try your suggestions out. This has all been very helpful to me. Again, thank you!!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.