• Resolved jbento

    (@jbento)


    All,
    I need to move wordpress out of a wordpress folder and the below is what I think I need to do:

    1. Backup database and files

    2. Delete current WordPress from server

    3. Reinstall wordpress and make sure I install it so it DOES NOT go into a wordpress or blog folder.

    4. Import the backed-up wordpress database and files

    I think that is all I have to do, BUT what I am not sure about is will there be any broken links within the database itself, because of it once being in a /wordpress folder?

    Can someone tell me this and what else do I need to change if I need to do some pointing to correct /paths now?

    Please help if anyone can.

    Thanks in advance.

Viewing 15 replies - 1 through 15 (of 15 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    I would do what you outlined except
    back up DB
    download .sql file
    open in notepad or similar
    search and replace old url -> new url
    save and import this to your new install

    Thread Starter jbento

    (@jbento)

    Samuel B, that is exactly the kind of answer I was looking for.

    I knew I was on the right track, but I just needed to know about changing the /paths.

    Thank you SO MUCH!!!!

    Thread Starter jbento

    (@jbento)

    Samuel B,
    I have another question.

    Once I have completed all the renaming and I am ready to delete the existing WordPress and create a brand new one, do I have to worry about naming the new .sql the same name as the old?

    The old .sql name is: gsgevents_GJaKuw

    Do I need to name the new one the same or does it not matter?

    It does not matter as you will be just importing the tables

    Thread Starter jbento

    (@jbento)

    whew:)

    Thanks govpatel

    You are welcome

    Thread Starter jbento

    (@jbento)

    Need some help.

    I had to also change the “wp-config.php” file, because it had the old database name, database user name and database password, so once I did that it connected correctly.

    The problem I am having now is the links. I updated the links in the .sql file, but some of the links are still not correct and I need some help from some of you to help me with that.

    Here is the wordpress address: https://www.goldenservicesgroup.com

    Here is one example of a incorrect link: If you go up to “About Us” and when the drop-down appears, you will see “About Julie”. The link for that is: https://www.goldenservicesgroup/Golden Services Group/about-julie/

    The link is broken and I am not sure where to change that in the .sql file to correct it. Other links are similar to that, so once I have a fix for this particular one, I can figure the other one’s out.

    Here is the .sql file: https://www.goldenservicesgroup.com/gsgevents_GJaKuw.sql

    Can someone help me with this?

    Your help will be most appreciated.

    WARNING: you shouldn’t post download link to your sql file.

    There are some things you can do in changing the url like directly in the database running some sql queries such as those found in this link https://www.mydigitallife.info/2007/10/01/how-to-move-wordpress-blog-to-new-domain-or-location/

    or using text editor with a simple string search and replace method.

    Have you tried to reset your permalinks as that could be the reason.

    in permalinks switch to default settings and save and check if your links work if they do then switch back to custom structure and save.

    Thread Starter jbento

    (@jbento)

    Yes, I tried to reset the permalinks and it didn’t work, because there is something more I need to edit in the .sql file.

    I know now what I need to change (I think:), so I will go edit it again and then see what happens.

    Once I get my solution, I will definitely post it back here.

    Thanks to all of you for your assistance!!!

    Thread Starter jbento

    (@jbento)

    Ok, I guess the blog back to the way it should be.

    I reset the permalinks and that is also working.

    See here: https://www.goldenservicesgroup.com

    The only problem I have now is if you look at everything for the menu item “About Us” and all of the drop-downs, they have /golden-nuggets

    I have tried several ways to remove that from the .sql file and everytime I do, the pages aren’t found anymore, then I have to restore from the good .sql file.

    The below is a sample of what is in the .sql file. You will find the golden-nuggets reference in the below 2 examples:

    Example 1

    ]\";s:61:\"/attachment/([^/]+)/comment-page-([0-9]{1,})/?$\";s:50:\"index.php?attachment=$matches[1]&cpage=$matches[2]\";s:29:\"(golden-nuggets)/trackback/?$\";s:35:\"index.php?pagename=$matches[1]&tb=1\";s:49:\"(golden-nuggets)/feed/(feed|rdf|rss|rss2|atom)/?$\";s:47:\"index.php?pagename=$matches[1]&feed=$matches[2]\";s:44:\"(golden-nuggets)/(feed|rdf|rss|rss2|atom)/?$\";s:47:\"index.php?pagename=$matches[1]&feed=$matches[2]\";s:37:\"(golden-nuggets)/page/?([0-9]{1,})/?$\";s:48:\"index.php?pagename=$matches[1]&paged=$matches[2]\";s:44:\"(golden-nuggets)/comment-page-([0-9]{1,})/?$\";s:48:\"index.php?pagename=$matches[1]&cpage=$matches[2]\";s:29:\"(golden-nuggets)(/[0-9]+)?/?$\";s:47:\"index.php?pagename=$matches[1]&page=$matches[2]\";s:34:\"cancellation/attachment/([^/]+)/?$\";s:32:\"

    Example 2

    It is our promise to you that each member of our Team has been selected not only on their professional skills, but by their track record to perform these skills in a highly ethical, honest, and professional manner at all times.? This promise, extended to each of our Clients, is the foundation of what we hope will become a long-term professional relationship.','About Us',0,'','publish','closed','closed','','golden-nuggets','','','2010-10-18 18:24:29','2010-10-19 00:24:29','',0,'https://www.goldenservicesgroup.com/?page_id=2',1,'page','',0),(3,1,'2010-10-30 13:36:06','2010-10-30 19:36:06','<h1>Introduction</h1>\nFounded by Julie Eudy in February 2002, she turned the challenge of corporate downsizing into opportunity by applying her years of Administrative and Marketing experience into a career as an Independent Consultant.??

    Can someone help me figure out how to get the /golden-nuggets out of the equation?

    Thanks in advance.

    You do not have change anything in database directly as what ever you have in your wordpress admin is saved in database.

    Check your pages I think you have it named golden-nuggets and in menu you have About Us that is why you getting it in drop down.

    Thread Starter jbento

    (@jbento)

    Thanks govpatel!

    That was the trick. I just logged into the control panel and fixed the Permalinks by deleting /golden-nuggets and once I did that, it fixed the problem.

    Thanks so much!!!

    You are welcome

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Move WordPress out of WordPress folder’ is closed to new replies.