WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Address (URL) and Site Address (URL) (47 posts)

  1. youthman
    Member
    Posted 1 year ago #

    I originally setup the website using a particular domain (ex. originaldomain.com) but now that we are ready to go live, I need to use a different domain name (ex. newdomain.com) for the website and remove altogether any reference to the original website.

    I have newdomain.com's nameservers pointed to the website files on the host so it is pulling up but all of the menu links, URL's etc are still pointed to the originaldomain.com.

    In the general settings, there is an option for WordPress Address (URL) and Site Address (URL). I'm assuming I need to change the "Site Address" to newdomain.com but I made the mistake on a previous website of changing BOTH of these settings and the entire website was broken, even the login and I found online that I had to manually go into MyPHP Admin to point the database back to the original URL to gain access to the admin again.

    I don't want to "break" the site and cause it to go down now that we are live.

    Any help would be greatly appreciated.

  2. youthman
    Member
    Posted 1 year ago #

    According to the WordPress site, it says, "Site Address (URL) - Enter the address you want people to type in their browser to reach your WordPress site. This is the directory where WordPress's main index.php file is installed. The Site address (URL) is identical to the WordPress address (URL) (above) unless you are giving WordPress its own directory. WordPress will trim a slash (/) from the end. If you defined the WP_HOME constant in your wp-config.php file, that value will appear in this field and you will not be able to make changes to it from the WordPress administration screen. "

    My website was installed at originaldomain.com/site/ but the newdomain.com's nameservers are pointed into the /site/ folder.

    Would I change the Site Address URL to newdomain.com to change all of the URL's within the site to reflect the new domain?

  3. youthman
    Member
    Posted 1 year ago #

    From what I can see online, I would want to change BOTH of the items then follow this http://codex.wordpress.org/Changing_The_Site_URL#Changing_the_URL_directly_in_the_database instructions on editing the database site URL.

    Is that correct? I REALLY don't want to "break" the website and spend forever trying to get it back up and running. I really need to know exactly what I'm doing before I make changes so that the transition is as smoothe as possible.

  4. cubecolour
    ɹoʇɐɹǝpoɯ
    Posted 1 year ago #

    Also look at http://codex.wordpress.org/Moving_WordPress#When_Your_Domain_Name_or_URLs_Change

    When moving a site to different domain I prefer to use the serialized search & replace tool on the db ( http://interconnectit.com/124/search-and-replace-for-wordpress-databases/ ) rather than a plain text search & replace.

  5. youthman
    Member
    Posted 1 year ago #

    Wow cube, that looks much more complex than the method I was looking at in the above links I provided. Is it safe to say there is no easy quick fix to my dilemma?

  6. fonglh
    Member
    Posted 1 year ago #

    You only have to change the URL settings and do a search and replace on all the internal links.

    It might seem scary at first but it's not very difficult. And you already have experience in changing the settings with phpmyadmin so you can always fix it if you make a mistake.

    As usual, backup the database first.

  7. youthman
    Member
    Posted 1 year ago #

    Scary isn't the word for it. LOL. I'm pretty new to designing using WordPress. This is probably my 5th WordPress site but my first domain migration.

    Right now, I'm reading and re-reading to make sure I fully understand the process before I jump in and mess everything up.

    Thanks for the encouragement guys.

  8. halty
    Member
    Posted 1 year ago #

    Have a look here: http://halty.net/
    This script will handle all that automatically. Let me know if you need any help. You will NOT mess up your "source" installation as the script does not modify it at all.

  9. youthman
    Member
    Posted 1 year ago #

    I've read so many articles, my head is swimming. :) I know I'm probably making it a bigger deal than it actually is...I'm one of those guys who will analyze a situation to death before making a decision to actually do it. It's that "Measure twice, cut once" mentality.

    Fong, I'm trying to figure out if I should leave the "old domain website" intact for now, and setup the "new domain website". That way I at least have the site fully working that I can refer back to, copy/paste etc in case something goes wrong.

    So far, I have backed up my Database using PHPMyAdmin, Downloaded the entire website files to my hard drive via Filezilla FTP and backed up WordPress using Tools>Export within WordPress.

    ....that's it.

  10. youthman
    Member
    Posted 1 year ago #

    Alright, I'm ready to try and do this...just still need some hand holding.

    Would it be better to create a new database, upload the "old wordpress files" to the new host, import the wordpress files and then do a search/replace on that database?

    To me, that would be the safest approach since my "old wordpress site" would still be intact in case the move to the new website has any glitches. Then once everything is worked out, I can delete the old website.

    Any thoughts?

  11. halty
    Member
    Posted 1 year ago #

    Any reason you do not want to try my script? It will do exactly what you want. You would only need to create a new database.

  12. youthman
    Member
    Posted 1 year ago #

    I really appreciate the offer to use your script halty. With all due respect, I'm not against using your script, I'm just being cautious, especially since you are a new member and only a few posts.

    Just way too many virus, malware etc on the net....just trying to protect myself. As a precaution, I did scan the website mover file for virus and malware and none were found. :)

    Anyone see any issues in using halty's script?

  13. youthman
    Member
    Posted 1 year ago #

    I just noticed on your page that it says that it will work with any webhost that uses Cpanel. My webhost is 1and1 and they do not use Cpanel.

  14. halty
    Member
    Posted 1 year ago #

    To be more exact, it will ALSO work on any webhost that uses cPanel. I did not have a chance to test it with 1and1, but, unless they run a very different setup, it should work just fine. And if it fails, I am here to help.

    But I certainly understand your concerns. If you want, you can leave a commend in the feedback section of the halty.net website with your email, and I will reply to you from my company's e-mail address so that you can make sure I am real :)

  15. youthman
    Member
    Posted 1 year ago #

    Thanks halty.

    I have created a new folder on my server and pointed the nameservers of the new domain to it. Will your script move all of my existing wordpress files from the one folder on my server to the new folder on the server?

  16. youthman
    Member
    Posted 1 year ago #

    I uploaded the source file to the current root directory of my wordpress website and uploaded the target file to the folder where the new website will reside. When I run the source script in my browser, it says...(note: I've replaced the actual URL with "/mywebswite/"

    Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /mywebsite/halty_source.php on line 108

    Warning: file_get_contents(http://halty.net/mover_version) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /mywebsite/halty_source.php on line 108
    Fatal error: Unable to communicate to a remote server. This script absolutely requires remote access, otherwise it cannot transfer any data outside of the server

  17. halty
    Member
    Posted 1 year ago #

    Yes, it will copy all files from old folder to the new one. However, best way to do this is to use halty_source.php while your domain is still pointing to the old (SOURCE) place. Although, if you can still open halty_source.php in a browser via other means (i.e., temporary domain), then you should be fine.

  18. youthman
    Member
    Posted 1 year ago #

    Sorry, I'm not following you.

    I have currentdomain.com with current wordpress site up and running.

    I want to move files to a new folder on my webhost and move the domain to newdomain.com.

    I uploaded the halty_source.php file to currentdomain.com/halty_source.php and uploaded halty_target.php to the root directory where the new website will reside.

    When I load currentdomain.com/halty_source.php in Firefox, I get the above errors.

    Thanks for your help.

  19. halty
    Member
    Posted 1 year ago #

    That means that 1and1 blocks outgoing connections for some reason. Some rare webhosts do that "for added security", but it creates more trouble than it solves. This also means that none of your WordPress plugins will be able to talk to the outside world to update information. Same applies to automatic wordpress updates and many other things.

    Let me test this on one of our 1and1 accounts. Maybe there is a way to enable outgoing connections. I am looking into this right now.

  20. youthman
    Member
    Posted 1 year ago #

    The original domain has not been changed. It is still pointing to the old (SOURCE).

  21. youthman
    Member
    Posted 1 year ago #

    Hmmm...I do get notifications within WordPress for me to update plugins and the core wordpress files.

  22. halty
    Member
    Posted 1 year ago #

    What plan do you have with 1and1?

  23. youthman
    Member
    Posted 1 year ago #

    1&1 Business

  24. youthman
    Member
    Posted 1 year ago #

    Thanks a bunch for your help.

  25. halty
    Member
    Posted 1 year ago #

    Allright, I have added a workaround for this. Please try this version:
    http://www.halty.net/website_mover_0.5.zip

  26. youthman
    Member
    Posted 1 year ago #

    Cool thanks. Got past the errors with the new version. Trying to find the IP address now.

  27. youthman
    Member
    Posted 1 year ago #

    The new domain is registered with Godaddy but I have the nameservers pointed to 1and1 for web hosting. Do I need to look up in Godaddy for the IP address of that domain?

  28. halty
    Member
    Posted 1 year ago #

    If your newdomain.com already works, then you can simply ping it to find out the IP. Example:

    C:\Users\*>ping google.com

    Pinging google.com [74.125.226.70] with 32 bytes of data:
    Reply from 74.125.226.70: bytes=32 time=6ms TTL=54

  29. youthman
    Member
    Posted 1 year ago #

    So far so good...copying files now.

  30. youthman
    Member
    Posted 1 year ago #

    says 4013 files copied. DONE. If you go to the new site http://panaceaengineering.com/ the homepage looks great but if you click on any of the main navigation links at the top, I get an Internal Server Error. Also, not all of the URL's are pointed to the new website. For example, if you mouseover the "Read More" underneath the "Company Profile" in the main body section, you will see that it links to the Klipschatlantic.com website.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.