• I’m assuming I have an odd issue after I’ve migrated a wordpress site from my test server (a subdomain on my regular server) to a new server (totally new). I went through all the steps of exporting the database, creating a new database on new server, importing the old database into the new database, transferring all the files, and doing a search and replace. After that, the site works great, aside from one thing. I had a password protected login to the test server folder so that robots like Google couldn’t find the subdomain and I exported the DB while that was still active. Then when you went to the new site, it asked for that login… on every page. I went back to the test server folder and turned off the password protection and the site is now fine and not asking for it. My question is, what happens if I remove that folder from my server in the future? Will that database freak out and try to find it, resulting in a broken site? Or will it just go about its business and not even look for it anymore? Or do I have to download the database now that the password protection is turned off and re-import it into the new database, and run a search and replace again?

    Any help would be greatly appreciated.

    By the way, I used this https://interconnectit.com/products/search-and-replace-for-wordpress-databases/ for the search and replace.

Viewing 4 replies - 1 through 4 (of 4 total)
  • What do you mean folder in this case? How did you password protect it?

    Thread Starter dsb0328

    (@dsb0328)

    I made a new folder on my server, let’s say it’s called “dev”, and then made that into a subdomain. (dev.myserver.com) I installed WordPress in it and built a new site. While I was building the site, I realized that I did not want public access to it, so I put a password protection on the folder (dev) through my cPanel. That way you had to log in when you went to the address. When I went to export the database, I didn’t turn the password protection off. Make sense?

    Yes makes perfect sense. That protections has nothing to at all to do with WordPress’s database. It might have written to you .htaccess file but would not have touched the database. So I’m confident that if you remove the folder nothing will happen with the WordPress install.

    Thread Starter dsb0328

    (@dsb0328)

    Okay, thanks for your response. That will make me sleep a little better when I decide to delete that folder. Just thought it was weird that the login window to the old folder still showed up after the migration.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Database issue after migration’ is closed to new replies.