Is it better to install WordPress in Root or Sub Directory?
Posted by Madhurie Singh on September 1, 2009
I am a bit confused on whether to install wordpress in the root directory or in a subdirectory under root?
This is an excellent site that solved my dilemma and confusion.
I really want to install my wordpress in a subdirectory, simply because, I have future plans to install more blogs under the same root directory of my domain. But if I install in wordpress in the root directory http://www.madhuriesingh.com, I will have a clutter of several directories and I am sure I will mess my web life worse than a fly caught in the spider’s web.
SO I am gonna create a separate sub directory for my wordpress installation under Root directory. I will call this say “only4kid”. Now this will have path name as http://www.madhuriesingh.com/only4kids/
Now if I go by the normal rule, anyone who wants to goto my website has to type “www.madhuriesingh.com/only4kid ! Naah! This is bad. Why will anyone want to remember or type so many words to reach my site. Unless it’s popped up by the search engines!
I want people to remember only one thing, and that is my name, which is my site name.
So the solution is to go change the path address for accessing the data and
to change the path address that readers will be typing to access the data in my site.
Ok let me simplify this.
I live in a house, where my hubby and my two kids also live. We have a separate room to each of us. But when we give our address to anyone, we give the address of our flat. We do not mention which room 🙂
But when they reach our home, we direct them to the exact room they should go, to meet the right person!
Now let’s see, how this is possible in WordPress.
Say I have already created a database called Only4Kid in the Root directory /root of my domain on the server provided by BlueHost, while running SimpleScripts for wordpress.
I log into my website, http://www.madhuriesingh.com/Only4Kid. Then I log into the admin page of my site.
I reach http://www.madhuriesingh.com/only4Kid/wp-admin/ .
Goto Settings > General
Make WordPress Address as http://www.madhuriesingh.com/Only4Kid
Blog Address as http://www.madhuriesingh.com
Now I will save these settings.
I saw my site and got scared! 😦 It’s showing big error message. But that’s ok, it’s suppose to show error, since the site is pointing to wrong path. :p
SO I need to set the path of the wordpress database right, before any other step.
At any point of time, when I have goofed up royally knowingly, all I do is go back to my SimpleScripts and install wordpress database again. But before that I make sure to delete the database and directories created by the last installation. An advice to all new comers. Always keep snapshots of all the your work step by step.
The exact steps to change and move the wordpress from root to subdirectory will be posted in another post.
At this point of time, there are some other basic things that I need to experiment and set up.
A few sites that googled as a result of my search to move wordpress, to sub directory.
http://educhalk.org/blog/?tag=change-url This is the best and I am gonna follow this site.
This entry was posted on September 1, 2009 at 2:30 pm and is filed under Migrating Wordpress Blog. Tagged: directory, install, madhurie singh, madhuriesingh, root, sub directory, wordpress. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.