wordpress_320x240

Moving a WordPress website from a sub-directory to your root: hosted with GoDaddy

I read today about a person frustrated their WordPress install was placed in a sub-directory rather than their root folder.

Technical support at GoDaddy suggested they just create a redirect to the sub-folder. I agree this is the easiest and although it works the links/urls within the pages and posts will continue to use the sub-directory structure! So it could be confusing for others down the road.

I suggest you take a little time and just move your WordPress site to the root folder of your website. It’s not very hard, just a lot of steps detailed below. Yes you could mess up your site but the odds are unlikely. To be 100% sure make a backup of your database and login via FTP and copy your site to your hard drive. Worse case you’ll be able to recover but you shouldn’t need to worry.

Disclaimer – No Warranty!

If you are not 100% confident with the idea of moving files/directories, using file manager in GoDaddy, changing settings in WordPress don’t even attempt this! The cost to hire an experienced person for this is much less than the frustration you’ll have making a mistake a long the way. I’m all for learning new concepts but don’t push it! Click here to inquire about us making these changes for you.

The Process Overview

Basically WordPress is installed in a sub-directory in your GoDaddy website. So we first need to go into WordPress and change the settings which tell it to use the sub-directory. We are changing http://yourblog.com/blog to remove the sub-directory /blog so your website url becomes http://yourblog.com. Problem is if you try to change WordPress after you move the files you’ll need to get SQL Database access to make changes and that gets really challenging!

So first you login to WordPress, change the URL, login to GoDaddy File Manager, move the files and then fix any missing images or links.

Getting Started

Depending upon your theme you may lose your custom header, rotating images, background images etc.. It depends on how the theme was coded. When you move your website files the configuration files may not change automatically. Just have copies ready before you make the move and upload when you’ve moved the site.

Open a web browser and login to your WordPress dashboard

Setting General thumb Moving a WordPress website from a sub directory to your root: hosted with GoDaddy 1 – Login to your WordPress site then go to Settings>General and there you’ll see “WordPress Address and Blog Address” and they will show the subdirectory after your domain name like /wordpress or /blog. For now leave this window open and go to step 2 Before url thumb Moving a WordPress website from a sub directory to your root: hosted with GoDaddy

Open a new browser or tab and login to your GoDaddy Account

2- Open a new browser window or tab and login to GoDaddy. Click on Hosting Manager in the left column

In the next window on the right side click Manage Account under the words “Control Panel.” ControlPanel thumb Moving a WordPress website from a sub directory to your root: hosted with GoDaddy

yourfiles thumb Moving a WordPress website from a sub directory to your root: hosted with GoDaddy

When the next window opens, in the top left click the button “Your Files.”

This will open the online file manager which operates a lot like Windows Explorer or Mac Finder.

subdirectory thumb Moving a WordPress website from a sub directory to your root: hosted with GoDaddy In the  left column choose your root directory if it’s not already chosen and then in the right column double click to open the sub directory that holds your WordPress install like /blog or /wordpress.

This is the directory and files you want to move to the root!

Warning number #2: If you are at all worried at this point don’t go forward as you can really mess up your site from here on!

Go back to WordPress and prepare it for the move

Before url thumb1 Moving a WordPress website from a sub directory to your root: hosted with GoDaddy Step 3: Go back to the window with your WordPress dashboard opened and now remove/change the /blog or /wordpress from the Settings>General tab and click Save Changes at the bottom of the page.

After url thumb Moving a WordPress website from a sub directory to your root: hosted with GoDaddy Your final URL should be your root directory not the sub-directory. This should be what you want the new website to resolve to. Again after removing the sub-directory click Save Changes at the bottom of the page.

At this point your WordPress install thinks it’s now in the root but it’s not!
At this point your WordPress site is broken and won’t work… how scary but don’t worry!

choose subdirectory thumb Moving a WordPress website from a sub directory to your root: hosted with GoDaddy Step 4: Go back to your GoDaddy window with the file manager open. In the left column click the sub-directory folder with your WordPress files and directories in it. This will display your files in the right column.

Page size thumb Moving a WordPress website from a sub directory to your root: hosted with GoDaddy Look close at the toolbar and there’s a setting for “Page Size” set this to 50 so you can see all your files and folders in one window.

Click check thumb Moving a WordPress website from a sub directory to your root: hosted with GoDaddy Now click the check mark next to Filename at the top of the folder list in the right box. It will check or highlight all your folders and files. You want it to say 28 of 28 files or 31 of 31 files so you know they are all selected. directories thumb Moving a WordPress website from a sub directory to your root: hosted with GoDaddy

If you leave the above setting at 25 you risk not selecting all your files. If you see more than one page of files something is wrong.

You should have less than 50 files/folders in your site. If you have a very large site you may need to move files in two steps. The goal is to get all the files into the root directory.

NOTE: I’m assuming here your root folder is empty. If you have another WordPress site or website you’ll want to first make a sub-directory and move these files FIRST. Then copy your WordPress files!

Make sure you are copying your files into an empty HTML directory. There will be folders but you don’t want to try and overwrite an existing website!

move thumb Moving a WordPress website from a sub directory to your root: hosted with GoDaddy Next you select the Move icon in the very top toolbar and you’ll be prompted to choose your root folder. Next in the left box you want to choose your root folder of your website and then click ok. Generally this is “html” and click ok.

root thumb Moving a WordPress website from a sub directory to your root: hosted with GoDaddy File manager will now move your web files, directories, plugins, themes, etc. to the root of your website.

When completed go back and check your original folder /blog or /wordpress and make sure it’s empty! If there are still files, select the remaining files and move them to the root folder and you’ll be fine.

You’ve done it time to test!

Now go to your browser and type in your root url/domain name and next you’ll see your WordPress site appear!

Now you can login and look around your site.

Clean up and testing

Depending upon your theme your site may work but your header or background or items may be broken? Some themes have special rotating images or if you have a custom background you may need to reset this. I’ve even seen some themes misplace your header file. Don’t worry the images are still there in your media library or your backup files. You may need to download and re-upload so the new url for the file is set.

Install the plugin Broken Link Checker and activate it. This plugin will scan your site and let you know of any links that are broken. WordPress will update your site links when you change the settings BUT it will not change any links you’ve placed inside of a post or page. Broken Link Checker will find the problem links and allow you to edit them. Just remove the reference to the sub-directory and save the link and you are good to go again!

Troubleshooting Problems

IF you setup a GoDaddy re-direct you’ll have to disable that

IF your domain name is forwarded to a sub-directory you’ll have to change that.

If you get 404 errors or page not found double check your browser isn’t taking you to the old site.

If that’s not the case make sure your files got moved to the root folder.

If the folders were moved ok first try another web browser. If you use Firefox try Internet Explorer to make sure you don’t have your pages in cache.

Maybe you didn’t save your WordPress settings? WordPress may still be trying to find the sub-directory and you’ve moved the files? You can change this in the SQL DB but that’s another long post!

hosting thumb Moving a WordPress website from a sub directory to your root: hosted with GoDaddy Reversing what you have done

If there’s no other hope you can copy your files from the root HTML directory back into your sub-directory and test again to see if WordPress works. If it does change your General>Settings url and save. Next move the files back and you’ll be good to go.

Worse case reverse all we’ve done and go back to where you started but I hope you haven’t got this far to even read this icon smile Moving a WordPress website from a sub directory to your root: hosted with GoDaddy

Any questions, comments or clarification just let me know!

Bob

  1. February 4, 2010

    YOU ARE A SAINT! You saved me from a huge crisis! I mistakenly only did PART A and then everything was broken and seemed unfixable. I couldnt access anything. Everything seemed to vanish. GoDaddy was of NO help. I was trying to tweak things in MyPHPAdmin and embarked down a hariy road of DB Config at 3am! Nothing worked and our launch was only a few hours away. Then I found your saving words. Thank goodness! I did the second PART and MAGIC happened! Everything was ok.

    Thank you Bob for taking the time to do this. It works great and is very clear.

    Blessings!

  2. February 5, 2010

    Thank you so much for taking the time to do this!! This worked like a charm and saved me hours of frustration!! Thank you, Thank you, Thank you.

  3. April 12, 2010

    I’m a big fan of this website and I check it regularly. Keep up the excellent work!

  4. May 9, 2010

    Good post. I found it while I was surfing the web on Bing and is just the information on blogging I was looking for. Keep up the good posting. I have bookmarked it so I can keep an eye out for your new postings. Thank you.

  5. May 14, 2010

    Thanks so much for this very useful post! I bookmarked it a couple of weeks ago, knowing that I would need it soon, and it guided me through the process nicely. It was well-written and very clear to follow.

    You’ve provided a wonderful resource – well done!

  6. May 25, 2010

    Finally a great post, another one bites the dust! I absolutely love your blog.

  7. Really Wonderful Blogpost. Would you thoughts if I take a tiny snippets of the write-up and obviously link it for your blogposts??

    • June 15, 2010

      Yes feel free to use in your write-up and link back.

      Thanks,

      Bob

  8. June 21, 2010

    This post saved my life!!

    But there may be something else you need to do. I had to call GoDaddy because at 1st my site showed up, then I clicked on a link, and it lead me to a blank page – NOTHING THERE!!

    What you need to do if that’s your case, is go to your hosting page, and mouse over Settings, and select the last listing, Edit Extension. In the Actions (far right), select the notepad icon (edit) for PHP 5.x. From the pop-up, select PHP 5.x, and click OK.

    Check out your page. BTW: you’ll likely need to view it in another browser – I had to.

  9. June 24, 2010

    I love your website – excellent job!

  10. July 20, 2010

    Thank you so much. Funny that is EXACTLY what GoDaddy said to me multiple times… its weird they wouldnt know how to just fix it.

  11. July 28, 2010

    I find I always keep coming back to your weblog. Excellent content. Thank you for posting.

  12. October 11, 2010

    Thanks Heaps

  13. July 2, 2011

    Actually comfortable I got here throughout this blog post. It was extremely useful. Anyhow, I was wondering what sort of theme you might be utilizing? I like the colors as a result of they mix so good. Well, sustain the nice articles and I’ll come back. I’m absolutely going to tell others about this.

  14. October 23, 2011

    Just wanted to take the time to say thank you for the excellent write up. I was afraid the process was going to be difficult but with your instructions, everything was as simple as can be. Thank you! – Kory

  15. January 13, 2012

    Thank you so much!! Was a breeze to walk through the steps and everything worked out smoothly!!!

  16. February 7, 2012

    Thank you thank you thank you!

    I read through plenty of sites explaining the process but this is the only one that is understandable and easy to digest!

  17. February 29, 2012

    Thanks so much! spent 2 days trying to find someone to explain this as easily as you have, great work!

  18. April 3, 2012

    Hey, It’s really very helpful for me.. Actually I was trying to move my one website root domain database to subfolder. I was doing research on same topic and here I got the answer of my problem.

    Thanks for sharing such valuable information :)

  19. November 7, 2012

    This is one of the best technical posts I have ever seen. Everything mentioned in a crystal clear way that actually works. Thanks a lot.

  20. March 9, 2013

    Thanks for the post… I’m doing a church website that I’ve managed as a standard website and decided to move to WordPress.org and had been testing on a subfolder… I was pretty sure this is how I wanted to do it, but it was great to see it all laid out so I didn’t miss a step :-) Thanks again.

    • March 12, 2013

      Thanks for your comment Lee, we work with a number of church websites so let us know if we can help with anything!

  21. Interesting blog! Is your theme custom made or did you download it from somewhere?
    A theme like yours with a few simple tweeks would really make my blog jump out.

    Please let me know where you got your design. Thanks

  22. April 8, 2014

    This is very interesting, You are a very skilled blogger.
    I’ve joined your rss feed and look forward to seeking more of
    your magnificent post. Also, I’ve shared your website in my social networks!

  23. June 23, 2014

    I visited multiple web pages but the audio feature for audio songs present
    at this site is genuinely wonderful.

  24. June 23, 2014

    At this moment I am going to do my breakfast, later than having my
    breakfast coming again to read further news.

  25. June 23, 2014

    I was suggested to view this website via my cousin.
    Great post! You’re amazing! Thank you!

Write a comment:

*

Your email address will not be published.

bad_do
Copyright © 2014 CyberInnovation.com
All rights reserved

  Contact us for your website design and SEO needs: 319-775-0045   View contact page