24/7 U.S. Support – 877-595-4482
When WordPress is installed, it will only work correctly within the folder that the program was installed in. In order to move WordPress to a different folder within your account, a few modifications to the coding is required. For example, you may need to do this if originally you installed WordPress on yourdomain.com, but later decide that you want the WordPress site in yourdomain.com/blog.
Moving your WordPress website to a new folder is easy! There are different methods to complete this task, however this is the way that we recommend:
Now that you have opened the wp-config file, you will just need to add two lines of code to let the WordPress software know the new location of the website. In your wp-config file you will see coding that looks similar to this:
/** MySQL hostname */
/** Database Charset to use in creating database tables. */
/** The Database Collate type. Don't change this if in doubt.
*/ define('DB_COLLATE', '');
After the coding that looks like the example above, you are going to enter in two lines of code:
Make sure that you keep the formatting exactly the same, and replace example.com/newlocation with the folder that you moved your WordPress website too. Once you have added the two lines of code, click the Save Changes button at the top of the page.
You can navigate to the new location in your web browser and make sure that it worked. If it does not appear, then make sure that the added code is correct as the exact syntax and capitalization must be used for it to work properly. Once you have thoroughly tested your site and verified that all files and folders were moved correctly, you can then delete the files and folders in the original folder where WordPress was installed (where you copied from in Step 3 above).
Please note, if you installed WordPress through Fantastico de Luxe, moving your WordPress installation as outlined above will NOT update the Fantastico data file that keeps track of software installations. This will not affect most users, but do keep in mind that if you ever decide to switch to a different software for your site, removal of the WordPress files through Fantastico will not work as expected.
|Email:||support@WebHostingHub.com||Ticket:||Submit a Support Ticket|
|Chat:||Click To Chat Now|