move WordPress to root

by davenathanson on September 9, 2016

in Internet

It’s really not that big of a deal.
But sequence DOES matter.
And if you have access to your database via phpMyAdmin, that might be handy in case anything goes wrong, you can fix it. The database doesn’t get moved, but it will hold the URLs we are editing below. However, most people have never used phpMyAdmin and you probably don’t need it either. If you did step one correctly.

Step 1) Make a backup of your site. I’ve been using UpdraftPlus and it is awesome. Even the free version is great. Easy to back up, easy to restore. Tons of features. So awesome I paid for it.

What it looks like BEFORE we move anything What it looks like BEFORE we move anything

2) Clear out any cruft from the root of your web dir- leaving only your wordpress files in the same folder and path they were in. Do not yet move any of your wordpress files. But do move everything else out of the root folder, including any index.html or index.php files. If anything needs to stay at the root, you can put it back in a sec, but for now move it elsewhere.

3) Login to WP as an admin. Deactivate your caching plug-in. Purge all caches now. – If your WordPress site is broken (already?!) you may have accidentally moved the wordpress files too soon. Put them back & try step 3 again.

4) Go to Administration -> Settings -> General.
Change the WordPress Address from example.com/wordpress to example.com
Change the Site Address address from example.com/wordpress to example.com
As soon as you save this change – Boom! – you’ll get an error. That’s how you know it worked! 🙂 Don’t worry, were are about to fix it.

5) Using FTP, move all the WordPress files (but not the enclosing folder) from their “wp” directory (folder) into root of the web folder.

Nice & clean AFTER we've moved WordPress to root folder Nice & clean AFTER we’ve moved WordPress to root folder

You will now have a root dir full of all the WP files that used to be in the WP dir.

6) Log into your WordPress at example.com/wp-admin  Hopefully it totally works. 😉
Just to be sure, Check Administration -> Settings -> Permalinks to ensure the link structure is still good. Push the “Save” button. And Again. Thanks.

7) A few things may still need fixing, like maybe the header graphic. You can relink or reupload.

8) You *may* need to open each page or post & and in the “text” mode, Find/Replace the old URL with the new URL (from step 3 above). For example, if your old WP site URL was example.com/wp/ and the new URL is example.com you’d do a find/replace in the “text”view of each post for example.com/wp/ and replace with example.com/   (those slashes are not optional). I would copy the entire post (from text mode) then paste into a text editor (no MS Word! Please), Then do that Find/Replace. Copy from the Text Editor and paste back into the post. Repeat for each post that has a link problem (they all might).

There are plugins that can quickly do a Find/Replace over your whole site, and this is a great time to know about a good one. I’ve used the free version of All-in-One WP Migration (once) and it did the job by exporting the database, doing your find/replace and offering the db as a download. You then upload it back in as an “import” to make the changes real. You DO have a back up, right? Actually, it did a great job.

9) If your site still needs some of the files you moved out of the root folder, you can put those back into the root folder now, but really consider which files you actually need, and which will just be more clutter to figure out later.

Advanced Tip: If you are not quite ready to go live with the WordPress site yet, you can put your old index.html file (& supporting files) back into the root folder because index.html usually has priority over index.php so your old site can still be at root, and when you want the WordPress site to take over, just rename or remove that index.html file to make the WP site active. This is messy, but does work if you are careful. Sometimes I’ll move all files out of the root folder prior to installing WordPress for the 1st time. Then put them back so the old & new sites can co-exist.  You will need to remember to rename either index.html (z_index.html) or index.php (z_index.php) to make either the old or new site active.

If I left anything out, web search for “move wordpress to root”

Best,
Dave Nathanson
Mac Medix

{ 0 comments }

Sometimes your email server gets a new SSL security certificate, or you have just set up your email account for the first time on this computer. In those cases, you may need to accept & save the email servers SSL security certificate. This works well with Mac OSX 10.5 (Leopard) and up, it is possible, but more difficult in 10.4 (Tiger) and earlier. Below are screen pictures from Apple Mail (OS X10.5.8), other systems will be similar. What we need to do is to tell the computer that it is OK to trust this mail server, even if the name does not exactly match. For the moment, I’m assuming that you are connecting to the correct server, and we are not in the middle of an attack. We just need to clear out this annoying message.
The problem looks like this. ” The identity of mail.YourDomainName.com cannot be verified. ”

1_dialog_cert unVerified

 

If you just click “Connect” you will be OK but only until Mail is restarted. Then it will ask again. What we need to do is to tell the computer that it is OK to trust this mail server, even if the name does not exactly match. If you pay a lot more for email than most people do, you can buy a unique SSL certificate just for your domain name, but that is beyond the scope of this article.  So what we are going to do is click the button for “Show Certificate” This reveals a checkbox that says; Always trust *.mail.server.com when connecting to mail.YourDomainName.com Yes, we want to put a check mark in that box! Then press the button to “connect”.

2_Verify cert Trust xbox

The computer will ask for your admin password to save this certificate. Enter that & you’re all set.

3_Cert trust pw req

It may ask you again if you have multiple email accounts on different servers. Go ahead & run through this again for those, if necessary.

{ 0 comments }

HeartBleed is SSL Serious Security problem -but Macs aren’t directly vulnerable

April 9, 2014

THE BAD NEWS From  heartbleed.com The Heartbleed bug allows anyone on the Internet to read the memory of the systems protected by the vulnerable versions of the OpenSSL software. This compromises the secret keys used to identify the service providers and to encrypt the traffic, the names and passwords of the users and the actual […]

Read the full article →

Password strength checker

January 23, 2014

The worst thing about passwords is trying to come up with a new one that is sufficiently complex, yet something you can remember. And how do you know if a password is easily guessed versus being a great password? How long would it take the robo-crackers to figure out your password? You know they are […]

Read the full article →

Cheap iPhone Talk Text & Data plan $30/month from KittyWireless & Page Plus

November 27, 2013

Hey, if you are open to saving money with last year’s phone, and some people will be, check this out. It won’t work for the iPhone 5, but it does work really well for the Verizon iPhone 4S. I mentioned this in a previous post, but I’ve received enough questions that I am going to […]

Read the full article →

How to Disable Sophos AV On-access Scanning

November 5, 2013

Most Mac users have not even seen a virus in many years. But it could happen. I’ve been trying out Sophos AV for Mac (Free) for some time now in both Mac OS X 10.6 Snow Leopard & Mac OS X 10.8 Mtn Lion. It seems to run OK, without causing noticeable problems. One of […]

Read the full article →

I’m contributing to the Technical Documentation of CHIRP

September 7, 2013

I am now a contributing editor of Technical documentation for the CHIRP project. CHIRP is a free, open-source tool for programming your ham radio. It supports a large number of manufacturers and models, as well as provides a way to interface with multiple data sources and formats. With CHIRP you can easily upload or download […]

Read the full article →

Migrate from VirtualBox to Parallels

March 2, 2013

How to Migrate from VirtualBox to Parallels I have a bunch of VirtualBox VMs that work fine under VBox, and I’d like to use them with Parallels Desktop 8 on Macintosh. Sadly, Parallels is not able to import them as-is, and researching this via the Parallels KB has not been effective.  Searching the web I […]

Read the full article →

Twitter Spam – How to Revoke Access from Rouge Apps

January 2, 2013

Did your friends tell you that you sent them Twitter Spam? How could that have happened? Here is how to fix it and regain control of your Twitter account. Change your Twitter password. This the first step. It might be all you need. But often it is not enough because Twitter is not just a little […]

Read the full article →

Cheap Cellphone and Great VoiceMail – Smart deals

December 2, 2012

Ask most people and they can name the 4 cellphone companies that offer cell phone service in your area. ATT, Verizon, T-Mobile & Sprint. But did you know that there are more choices? Some really great deals on the exact same service – only cheaper?!! It’s true! My personal opinion is that Verizon Wireless (VZW) […]

Read the full article →