The Tech Diary of an IT support geek

  • Home
  • Android
  • iOS
  • Mobile
  • PC
  • Tips
  • Contact US
Home » how to move your wordpress blog from sub-directory (/blog) to root directory in seconds

how to move your wordpress blog from sub-directory (/blog) to root directory in seconds

 1. Log in to your cpanel by visiting your site in this format http://www.yoursite.com:2082 or http://www.yoursite.com/cpanel
2. Locate file manager from the initial / default display screen and click on it

3. Delete the initial things that are not necessary including index.html / index.php from the root directory and navigate to /blog (current directory where your wordpress site is currently installed ) of your site => select everything there by clicking select all from the menu nav ==> click copy (not move , in order  to still have your backup copy) to start the copying process

4. Remove /blog (current folder ) from the address to be copied to allowing it be copied to the root directory

5. Log in to your wordpress admin dashboard by visiting your site in this format http://www.mysite.com/blog/wp-admin ==> enter your log in details and hit enter => Navigate to settings / general and change the site url / wordpress address to point to your root directory ==> hit save and proceed to the next action

6. Edit your permalinks settings by navigating to settings/permalinks . N/b if you visit your root site at this point without editing the permalinks any post clicked on will return error 404 ==> edit the permalinks using exactly what you used before so as to reserve your backlink / pagerank  => hit save and proceed to the final step

7. Install “Regenerate Thumbnails” plugin by going to plugin -> add new -> enter Regenerate Thumbnails in the search bar and hit enter ==> install one from the search result to restore any broken image link during the migration

Hurray , Your site is moved , now visit your root directory by entering http://www.yoursite.com and check over and over again to confirm every thing now works fine ==> if 100% confirmed , download a backup copy of /blog and delete all the files in there leaving the parent folder for the very last step .
8. Force Wild card redirect on your /blog to reserved your backlinks (other sites already linking to your post ) , links , category , tags and all external links. To do this Go back to your cpanel interface and click on redirect from that window redirect both http://www.blog.yoursite.com and http://www.yoursite.com/blog to http://www.yoursite.com save and close .

Now your blog is moved . No coding ! No Difficulty Involved . Your Opinion / complaints below

 Source

  • Facebook
  • Twitter
  • LinkedIn
  • WhatsApp
  • Reddit

Related

Posted by Obasi Miracle on this date: Leave a Comment
Shortlink:

Sign Up in Seconds

Join us to get latest posts (ONLY) delivered to your inbox. No Spam, We Promise!

About Obasi Miracle

I am a dedicated web developer with interest in blogging and app development. I have lots of buddies and always ready to connect with like-minded pals - See more about me.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Next PostGoogle Upgrades AdWords for Better Mobile Targeting …. Your thoughts ?
Previous Post9 proven ways to Make Money Online this Year

RSS Inside: 3rd Planet Techies

  • SUITU Smart Portable Car Air Compressor Review and Performance Test
  • MAM and MT4 Integration: How MAM Enhances Your Trading Experience
  • Topdon JS3000 Car Battery Jump Starter Review and Performance Test
  • How to Repair Microsoft Outlook 365 in Windows 11?

Sign Up in Seconds

Join us to get the latest posts (ONLY) delivered to your inbox. No Spam, We Promise!

Recent Posts

  • How to Connect Bluetooth Keyboards to Android Phones and Tablets
  • How to Convert YouTube Music Videos to MP3
  • Top 10 Free Email List Sites To Get Free Leads For Your Marketing Campaigns
  • How to Drop a Pin on Google Maps

Looking For?

mtn cheat for android, how to transfer data on etisalat, how to share data on airtel, How to share data on etisalat, mtn free browsing cheat for android phones, how to transfer mb on etisalat, mtn mb cheat for android, mtn free browsing on android, how to transfer data on airtel, latest mtn cheat for android, mtn free browsing cheat codes with unlimited data downloads, how to share airtel data, mtn cheat code for android, best airtel tariff plan for browsing, 2go for windows phone, sharemobile ro, how to transfer etisalat data, mtn cheats for android, etisalat data transfer, airtel data share
© 2025. The Tech Diary of an IT support geek. Privacy Policy