The following describes how I successfully installed and configured WordPress to run from the root of my website hosted on GoDaddy.
After doing a little research on blogging applications, WordPress rose to the top as one of the most prolific and extensible platforms to use for both websites and blogs.
Since I already have a GoDaddy hosting account, and they offer WordPress as one other their canned web applications install options, I decided to give it a whirl.
What I did not count on was the amount of effort it would take me to get the site configured as desired.
For instance, by default, GoDaddy installs WordPress in a folder just off the root of my website, which is located on and IIS 8.5 web server. I wanted to be able to launch the website (my blog) from the root of dennismoon.com.
So, after a little more googling, I learned that you have to do something like the following to get this to work properly:
- Launch your WordPress website as an administrator, and go to the Dashboard to bring up the toolbar side menu.
- Navigate to and then select the Settings -> General menu item. The General Setting page appears.
- The WordPress Address (URL) and the Site Address (URL) input fields will likely both be configured to the location of the WordPress installation subfolder.
- Modify the Site Address (URL) input field to instead point to the root of the website. (e.g., http://dennismoon.com)
- Next, you need to copy (not move) the index.php file from your WordPress installation subfolder to the root of your website.
- In the root folder copy of the index.php file, locate the following statement:
require( dirname( __FILE__ ) . ‘/wp-blog-header.php’ );
- Replace the above statement with the following statement:
where wordpress_folder is the name of your WordPress installation subfolder location.
- Finally, you must create an instance of a web.config file and place it in the root of your website. In this root folder web.config file, add the following entries to support URL rewriting to transparently redirect incoming root requests to the WordPress application.
You should now be able to launch your website using the root URL and see your WordPress content.
Stay tuned for more WordPress setup steps to come…