WordPress.org

Ready to get started?Download WordPress

Forums

migration (28 posts)

  1. djdancer
    Member
    Posted 1 year ago #

    Hello. A couple of weeks ago I migrated a site over. It was originally installed and built on the same site only in a webtest directory. Now it is at the root. I have a problem that was resolved by editing the old site directory from the .css. It worked fine. It kept resolving to the webtest url directory.

    Now it is back to resolving to the old webtest again after a couple of weeks. I had turned it over to the client and there have been changes made to the site itself.

    If I go into WordPress/General I see the WordPress Address (URL)
    Site Address (URL) resolving to the webtest again.

    How can I fix this without losing all of the changes that the client made since handing over the site?

  2. fonglh
    Member
    Posted 1 year ago #

  3. djdancer
    Member
    Posted 1 year ago #

    Okay. I think I need a little more guidance than this. This is my first WP site and I can't lose any of the changes that they made.

    - Created a new instance of WordPress in the root of the site.
    - I created a new database then migrated all items except the old database into the new site.
    - It was somehow still looking at the old site so the styles.css was modified to look at the new url. It was fine. I'm not sure whether after handing it over the guy made a mistake and restored from a backup. I should have deleted the old backups but overlooked it.

    Now if I go to Admin/settings/general I see the old site listed again. Is there a way that I can change the url in there and not lose any of the changes they have made since handing it over?
    Thank you!

  4. djdancer
    Member
    Posted 1 year ago #

    I am very worried about losing their changes. I did read through the articles and just need some guidance on doing this so I don't mess it up. It has to be seemless to them when I do it.

  5. govpatel
    Member
    Posted 1 year ago #

    All your articles and settings are saved in database and all your your themes,plugins and uploads are saved in wp-content folder.

    So as long as you keep backup of database and wp-content folder you should be fine.

    It was originally installed and built on the same site only in a webtest directory. Now it is at the root. I have a problem that was resolved by editing the old site directory from the .css. It worked fine. It kept resolving to the webtest url directory.

    Now why did did you change css link as that should work from your theme

    Any if you have all wordpress files and folders in root then you will be safe change the urls to domain name where as if you have wordpress files and folders in webtest directory then you can move to root or use wordpress from directory

  6. djdancer
    Member
    Posted 1 year ago #

    Thanks govpatel. I am wondering if all of the changes that have made are also in the webtest directory. There is a problem that I just noticed...?? I renamed the webtest directory to webtestold when it was resolving to the right urls. I'm not sure what happened or if they have restored from backup or what. I just know that they are resolving to a directory that doesn't exist. http://www.wesharehope.org The home page resolves okay but then when I click on any tab it resolves to http://www.wesharehope.org.php5-1.dfw1-2.websitetestlink.com/...

  7. govpatel
    Member
    Posted 1 year ago #

    Where exactly are your wordpress files and folder are they in root or in directory as I see this urls in your source code
    http://www.wesharehope.org.php5-1.dfw1-2.websitetestlink.com

    so where does php5-1.dfw1-2.websitetestlink.com
    this come from

    What do you have in Settings>>>General

  8. djdancer
    Member
    Posted 1 year ago #

    I believe they are in the root. I don't know what .php5-1.dfw1-2.websitetestlink.com is?? They were originally installed in WPInstall directory then migrated to a site with a brand new WP database. The old database was omitted.

    In Settings>>>General I have:

    WordPress Address (URL) http://www.wesharehope.org.php5-1.dfw1-2.websitetestlink.com

    Site Address (URL)
    http://www.wesharehope.org.php5-1.dfw1-2.websitetestlink.com

    I have no idea where these settings are coming from.

  9. fonglh
    Member
    Posted 1 year ago #

    The settings are coming from the database the wp-config.php file is pointing to.

  10. djdancer
    Member
    Posted 1 year ago #

    How do I go about changing this and will I lose any data?
    Thanks!

  11. djdancer
    Member
    Posted 1 year ago #

    I think I have a pretty serious issue but can't go changing everything now. I see that someone has possible restored to the wrong database. I'm not sure but in wp-config.php I see it is pointing to the old database. I don't think that's such a big deal in that there was nothing wrong with the old database. I need to know how to change the url to the actual root without losing any data that they have changed.

    I handed this site over to the client and they were to have Admin access. I have now downgraded them to Editor for the time being.

  12. fonglh
    Member
    Posted 1 year ago #

    Where is the data they changed? In the old or new database?

    To change the site URL read the link I posted in my first reply.

  13. govpatel
    Member
    Posted 1 year ago #

    If you have your wordpress files and folders in root then you can change urls in settings >>>>General to be just domain name if that is your host has configured your domain name to point your root.

    You will need to reset your permalinks if used

  14. djdancer
    Member
    Posted 1 year ago #

    Okay now I kind of understand. I went in and looked where my host database itself is and it says: Online Manager https://mysql.dfw1-2.websitesettings.com

    Is this the way my url is supposed to look? OR could it be configured so that all urls point to root instead of the hosting??

    I'm also a bit confused by what I see in the wp-config.php points to the first database. When if fact I backed everything up after a successful migration and the backup has the name and credentials of the second database.

  15. fonglh
    Member
    Posted 1 year ago #

    Unless you're marketing your site as mysql.dfw1-2.websitesettings.com, the URL is supposed to be the domain name you've bought, and you need to point your domain name to your host's webservers.

    Point it to whichever database has the data you want and just change the URL settings.

  16. djdancer
    Member
    Posted 1 year ago #

    Do I just go in and change it under settings>>>general or do I change it at the online manager. I don't see the websitesettings.com anywhere in the we-config.php. I just see that it's pointing to the first database that was created. That doesn't really matter.

    I do see:
    MySQL settings - You can get this info from your web host ** //
    /** The name of the database for WordPress */
    define('DB_NAME', '623913_WSH1');

    /** MySQL database username */
    define('DB_USER', 'SQLADMIN' changed for obvious reason);

    /** MySQL database password */
    define('DB_PASSWORD', 'dbpassword' (changed for obvious reason);

    /** MySQL hostname */ for
    define('DB_HOST', 'mysql50-113.wc2.dfw1.stabletransit.com');

    Thank you!

  17. djdancer
    Member
    Posted 1 year ago #

    I went in and changed settings in the database. I cleared my cache several times and it looks like everything changed except for the tabs under "Our Work">>>"What People Are Saying". Is that still cached somewhere.

    Thanks so much!

  18. govpatel
    Member
    Posted 1 year ago #

    It is on 2nd page

  19. djdancer
    Member
    Posted 1 year ago #

    I went in and changed settings in the database. I cleared my cache several times and it looks like everything changed except for the tabs under "Our Work">>>"What People Are Saying". Is that still cached somewhere or is it in the menus? All other menus look fine.

  20. govpatel
    Member
    Posted 1 year ago #

    Are you using any cache plugin if so clear cache

    did you reset your permalinks

  21. djdancer
    Member
    Posted 1 year ago #

    Just to add that all custom menus still have the websitetest url. If I change it to match all other links it displays as "I can't seem to find what you think you're looking for".

  22. djdancer
    Member
    Posted 1 year ago #

    I did reset. I deleted the old .htaccess (after backing it up), cleared my cache and tried again. I tried making permalinks to default. Then putting them back to posts...

  23. djdancer
    Member
    Posted 1 year ago #

    Okay so the status is that all links are changed except for custom menu posts. Also the posts themselves have permalinks that are the old url. Is that something I can change in the database too?
    Thanks!

    [ Please do not bump, that's not permitted here. ]

  24. djdancer
    Member
    Posted 1 year ago #

    I am still having a problem where my custom menus for custom posts will not change. I did reset my permalinks. I also tried to go into the database and find instances of old url but didn't find anything after searching the whole database. How do I know if I'm using any cached plugins?
    Thanks!

  25. govpatel
    Member
    Posted 1 year ago #

    It all depends on how those custom menus are set check in Appearance>>>Menus see if they are set from there.

  26. djdancer
    Member
    Posted 1 year ago #

    Yes they are setup in there. If I change (for instnce testimonies to be http://www.wesharehope.com/testimonies it will give me an error when going to page. If I also look at custom posts and testimonies it is also set in there but I can't even change it at all. I only have a couple of issues left with the site then I can turn it back over to the client.
    Thank you!

  27. govpatel
    Member
    Posted 1 year ago #

    How is that testimonial page set up as if you using plugin then it should not cause any problem.

    I see post_type=testimonials at end of url so may that may be problem

  28. djdancer
    Member
    Posted 1 year ago #

    Why would that be a problem? If I change it to http://www.wesharehope.com/testimonies I get error on page. What should it be changed to and if I change it in the menu how do I then change on each custom post. It doesn't allow me to change it. Keep in mind that this has been fine for a couple of months and now this??
    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.