Always install Wordpress on the root directory

Unless your blog is a secondary part of an existing website you should always install Wordpress on the root directory. When I created my first blog I used an automatic Wordpress instalation that my web hosting company offered, but the standard installation was done on “www.domain.com/blog”.

I was not sure how this would affect the blog therefore I decided to leave things as they were. A couple of months later when I started studying SEO I realized that this was a bad move. My blog could be accessed either through “www.domain.com” or “www.domain.com/blog”, meaning that the Homepage was duplicated. Secondly Google’s Pagerank was also being divided and some aggregators like Technorati were considering the two addresses as two different blogs.

This is my contribution to the “Blogging Mistakes” project. We already have 21 people participating, if you have not submitted your entry make sure you do so. The deadline is the midnight of Sunday. I am looking forward to reading your blogging mistakes!

91 Responses to “Always install Wordpress on the root directory”

  1. engtech on March 28th, 2007 5:38 pm

    also, if you change your blog url AT ALL you lose your Technorati rank.

  2. Mark Alves on March 28th, 2007 5:58 pm

    Do you know if the Technorati penalty applies even if you 301-redirect from the old URLs to the new ones?

  3. Daniel on March 29th, 2007 3:03 am

    Mark, I think so. I know you can preserve Pagerank and incoming links as far as search engines are concerned, but Technorati seems to have a more obsolete ranking mechanism.

  4. Ben Evert on March 29th, 2007 4:18 am

    So, How would you fix that problem? Would you delete all the folders on the server and reinstall wordpress using the non-automatic copy? Or, Just move wordpress out of its’ ‘blog’ folder? I’m in the process of setting up a new blog on a different host and would like to know.

  5. Daniel on March 29th, 2007 4:24 am

    Ben, the best thing is to avoid falling into that pitfall altogether.

    If you did that but the blog is new (i.e. not a lot of backlinks poiting to it) I would suggest moving the Wordpress installation to the root directory even at the cost of losing those links.

    If you did that mistake and realize only when the blog is already mature (which was my case) you can either use the http://www.domain.com address to set up a welcome page and leave the blog on http://www.domain.com/blog or you can try to fix everything with 301 redirects, but that would be a mess because its not just a matter of redirecting the /blog foler to http://www.domain.com since you will also need to take care of all the single permalinks, images and so on.

  6. Mike Panic on March 29th, 2007 5:33 am

    When I installed WordPress a few months ago to start Randomn3ss.com, it was tempting to use the auto-installer my host has in cpanel, however I wanted it to be in the root directory. Every reason above is why I did it, as well as it being easier for my readers to find the site.

  7. Thilak on March 29th, 2007 9:18 am

    That is certainly true, I’ve seen lots of bloggers do this mistake.

    I think, you show write a book and sell it. Nobody realizes these crucial mistakes when the just start blogging

  8. Daniel on March 29th, 2007 10:04 am

    Thilak, that is an idea I had for sometime hehe, there is no equivalent of the SEO Book for blogs yet :). It sure would take a lot of time to come up with something well structured, lets see in the near future!

  9. Leroy Brown on March 29th, 2007 12:05 pm

    I realized my mistake about six months or so in, so it was too late in my eyes to switch. It’s way too late now, which is a shame. To add insult to injury, I have the date in my permalinks, which bothers me every time I look at them!

  10. Malin on March 30th, 2007 1:21 pm

    Since I have one Wordpress adress and another website adress stated in the Options page this hasn’t been an issue to me even if I have the Wordpress installation in another folder. My permalinks doesn’t write out the subfolder, so I guess I’m okay? Or did I miss anything?

    Another thing though, is to choose to have either www or no www, I just fixed that with a 301 redirect. I should have done this a long time ago…

  11. Ronald Huereca on April 2nd, 2007 1:29 pm

    This is very sound advice. Does this advice go for subdomains as well?

  12. Andrea on April 3rd, 2007 2:28 am

    I’ve seen this a few times recently and I’m glad I didn’t make this mistake.

    Your blog has been a great help to me and I hope you’ll do more group writing projects in the future. Thanks!

  13. Daniel on April 3rd, 2007 3:25 am

    Ronald, I dont think it applies to subdomains because you can separate the submain from the root. Just make sure that the main domain has unique content.

  14. Ashish Mohta on April 3rd, 2007 7:18 am

    Well then I am taking up the challenge of having my blog in a subdirectory and make it successful.I dont agree with this concept to 100%.It might affect you a little but not to an extent that you are just dead.

    Till the time you are linked, indexed and good in books of google you have the benefit.

    Lets see how my blog does.

  15. Ashish Mohta on April 3rd, 2007 7:20 am

    One more thing I forgot to mention.I have see lot of sites which are in subdirectory and they do well…..Putting in root directory might give you a benift but thats not the necessity

  16. Daniel on April 3rd, 2007 4:29 pm

    Ashish, as long as your homepage page has different content than the blog on a subdirectory is OK. Sites like SEOMoz have some content on the homepage and the blog on a subdirectory.

    The problem is that my blog was the only thing I had on the site, in that case you should place it in the root directory for optimal results.

    Doing a redirect like you did is a good solution also. Just make sure its a 301 else you will lose PR.

  17. Ashish Mohta on April 3rd, 2007 5:42 pm

    How do i do a 301 redirect ? Can you tell me the code ?

  18. Rahel on April 5th, 2007 8:41 am

    I haven’t read through all the comments yet, but I’ve seen a few that suggest that if you use the automatic install of WP that is usually packaged with cpanel, you can’t install in the root directory. Actually, you can install in the root directory. The only time there would be a problem is if there is already a blog installed there, specifically a copy of WordPress, but that would be a problem if you did the manual install as well. Just my 0.02.

  19. Faye on April 8th, 2007 8:11 am

    Can someone explain how you install wordpress on the root directory? I’m totally new to this and have not yet set one up but want to make sure I’m doing it correctly. Is there an option that says “root directory” when you go to wordpress to set it up? Thanks.

  20. Ryan on April 30th, 2007 5:56 am

    I made the same mistake when I started my wordpress site a few years ago. I had the domain name for a while and had previously hosted it on blogger and LJ. Then I moved to WP, which I adore and tell everyone about. But when I step up my WP, I did so at megorious.com/blog. The idea being to one day have something snazzy set up in my root. But that day never came. I found myself redirecting my root URL to /blog.

    After a year or so, I decided to move it all to the root, and for anyone who has done this with WP, you know how much of a pain it can be. I panicked so many times, thinking I had lost the entire thing. Thankfully, several hours later, I stopped crying…

    This is my first visit to your site. I have one suggestion (and please take this with a grain of salt). When I came to comment, I noticed you had a lot of comments I had to scroll through. This doesn’t phase me but for a lot of people it might. A simple link at the end of your post that directs them to the comment box would be nice.

    Just a thought…

  21. John Fitzsimmons on June 28th, 2007 10:12 am

    This problem could be easily resolved by using a robots.txt file to disallow /blog/

    Am I wrong?

  22. Daniel on June 28th, 2007 1:53 pm

    John, if you install WP on a subfolder like /blog/, all the posts’ URL will have /blog/ on it.

    Therefore if you disallow /blog/ you will be disallowing pretty much everything except the homepage :).

  23. Jermayn Parker on July 2nd, 2007 7:19 pm

    So whats the best way of doing this seeing I use cpanel to automatically install WP????

  24. John Fitzsimmons on July 5th, 2007 7:00 am

    Daniel, that’s not necessarily true. For example, I have customized the permalink structure to not include the sub folder “Blog/”.

    On one site I’m working on the structure is like the following…

    http://www.WEBSITE.com/index.php/POST-TITLE

    So why can’t I just disallow the “Blog/” folder?

    Am I wrong?

  25. mario on July 16th, 2007 10:33 pm

    This is an idiot advice. Not because of the root path argument, but because of the implicit recommendation of WordPress.

    That’s definitely the most bug-riddled software in existence. It even surpassed phpBB and PhpNuke security-wise. Everyone who installs that, deserves to get hijacked and content-cleansed.
    I have lost a lot of time to other douchebags on my shared hosting servers, because of that software. And mind you, WordPresses’ amateur programmers always shrug it off with ohh-it’s-not-thaaaat-a-big-a-security-risk or the NO WARRANTY GPL preamble.

    So, people - get ANY blogging software; just not WordPress!

    (check out FlatPress, S9Y or WikyBlog)

  26. Daniel on July 17th, 2007 2:44 am

    Mario, I respect your opinion. However, if that was the case, how can you explain dozens of popular blogs that use Wordpress?

    Some of those blogs (e.g., TechCrunch) make more than $100,000 monthly in revenues, and I bet they pay a lot to programmers and web developers as well, just to make sure everything works. They are just paying stupid people?

  27. Ray Fowler on July 18th, 2007 3:41 am

    Daniel,

    My blog is about four months old. I have WordPress installed in a blog directory rather than the root directory, but in Dashboard under General Options I have the following:

    WordPress address: http://www.rayfowler.org/blog

    Blog address: http://www.rayfowler.org

    This seems to take care of the problem. When I try entering the site using the /blog address, I get a 404.

    Is it okay having it set up this way, or am I missing something?

    Thanks,
    Ray

  28. Daniel on July 20th, 2007 5:09 am

    Ray, your Wordpress files are installed on the subdirectory, but the blog address is set to the root, so you are fine.

  29. Ray Fowler on July 21st, 2007 9:06 am

    Daniel,

    Thanks for clarifying that for me. And thanks for all the great tips on your blog!

  30. uberdose on July 24th, 2007 7:37 am

    So your problem was actually duplicate content, not the root URL of your blog. I dare to say you could install it in /whatever, put other content on / and you wouldn’t lose anything. Or just do a 301 from / to /whatever, still the same.

  31. Wellness on August 7th, 2007 1:41 pm

    Hey

    I was surfing the web and i saw this site, pretty cool.
    Currently im running and adult site:Wellness
    k, just want to say hi :)
    Can i link you from my site? im looking for quality content like yours. If no let me know if i can add u in exchange for a montly fee or something.

  32. atribut957 on November 6th, 2007 6:13 am

    1000 2 5000 8 10000 13 50000 50
    : 10% !!!
    forumdispatch()yandex.ru

    1000 forums of 2 dollars, 5000 forums of 8 dollars, 10000 forums of 13 dollars, 50000 forums of 50 dollars
    Referral: the person involved to me the client will receive 10 % from its order!!
    e-mail forumdispatch (dog) yandex.ru

  33. Lana on November 16th, 2007 10:21 am

    Daniel, thank you so much for this post. I knew something is not right, my site is not getting any attention from anywhere. Now I know why. In the beginning I’ve run my site thru W3 validation site. It pointed on adding additional “/” somewhere in the address. I don’t know these things, so I’ve asked someone to do it. He said “It’s not elegant”, but reluctantly succumbed in editing the code. Now I see there is a bigger problem. Thanks again.

  34. Abhinav on December 12th, 2007 6:35 am

    Hi Daniel!

    I would like to confirm whether the following scenario is fine or not:

    If I am managing two different blogs, each having their respective folders: “root/blog1/” & “root/blog2″ and I have 2 different domain names pointing to the respective blog folders. Will that be fine for search engines? There is nothing else in the root folder.

    Thanks!

  35. Frances on January 22nd, 2008 4:57 pm

    Hi there, has anyone successfully installed wordpress with discountasp.net as a /blog install?

  36. Michael Aulia on February 19th, 2008 3:30 pm

    :(
    If I only I read about this post a few months earlier.. I set up my Wordpress’ blog to be under http://www.michaelaulia.com/blogs (I even put a mispelled ’s’ on it!! doh)

    I don’t think I want to change it to the root, assuming there will be a lot of pains and tears

    Should I keep it under the /blogs ? The traffic is about 200 unique visits a day at the moment

  37. reblogger on April 6th, 2008 11:13 pm

    I realize I’m a month late, but maybe someone will take the time to respond. I’m just learning about blogs and I had a question:

    We intend to have a blog with several features:

    blog entries with videos, rss feeds, opt-in form, and a few static pages (about us, information, etc). Primarily it will be a blog site, but over time there may be other features added on.

    I have a host who allows free add-on domains so this will be technically not on the primary domain, but for all intensive purposes it will (it has it’s own separate domain).

    so my question is, do I install WordPress on the root level, or on a sub folder or on a sub domain. And to make things more complicated, I’d prefer to keep the WP main files in a subfolder of the main root folder so that it’s not cluttering that folder.

    any suggestions?

  38. Daniel Scocco on April 7th, 2008 7:38 am

    reblogger, if you install WordPress on a subfolder, what will you put on the homepage?

  39. howtoofeverything on April 26th, 2008 8:53 pm

    Thanks Daniel,

    I ‘ve been thinking for this situation for couple day and finally I find your web on google SERP that your tips get on page 1

    I had find a good resources to bookmark at your blogs.

    Nice for sharing

  40. C.D. Allen on May 17th, 2008 2:22 pm

    What about if I want to install forum/message board software in the future? I wouldn’t be able to do so if I installed WP to the root directory, right?

  41. Bryan Hee on July 14th, 2008 10:55 pm

    Good idea to install WP in the root directory, is easy for your visitor and search engine to find your blog. It’s more “search engine friendly”

    To Your Success
    Bryan Hee

  1. Blogging Mistakes: Final List
  2. Finglish! » Blog Archive » 48 Blogging Mistakes to Avoid!
  3. Blogging Mistakes, Part Deux | Middle Zone Musings
  4. Bloggers Share Their Blogging Mistakes at Gauravonomics
  5. Blogging Mistakes To Avoid
  6. 48 Fehler von Top-Bloggern, die jeder vermeiden sollte/48 mistakes from Top Bloggers everyone should avoid » ProBloggerWorld » Blog Archive
  7. DailyBlogTips.com Project: 48 Experiences of Blogging Mistakes at Clever Dude
  8. Blogging Mistakes–The Complete List | reading is my superpower
  9. Blogging Mistakes-Complete List « Life Rocks ! 2.0
  10. TechTraction » Blog Archive » Blogging Mistakes: 48 Personal Experiences
  11. Blogging Mistakes Group Project Results
  12. JDsBlog » Blog Archive » Blogging Mistakes
  13. Customerservant.com » Blogging Mistakes Final List
  14. RobertoAlamos.com - The place to learn how to make money online » Blog Archive » Blogging Mistakes Project: The definitive list
  15. 48 Blogging Mistakes : To Make Money Online
  16. qarambol » What not to do with your blog
  17. Group Project: Blogging Mistakes Outcome
  18. 48 Blogging Mistakes to learn from at Madhur Kapoor’s Blog
  19. Dfinitive Blog » Blog Archive » 32 Common Mistakes That Can Kill Your Blog
  20. ViralVoice.net | Find Marketing Answers Fast » Blog Archive 48 Great Blogging Tips »
  21. Bloggers Make Mistakes Too » Reader Appreciaton Project
  22. Blogging Together: Common Mistakes in the Blogosphere
  23. Blog Mistakes
  24. Blog N Tips » Blog Archive » Group Writing Projects Bring Links
  25. Installing Wordpress on the Root Directory at Gauravonomics
  26. thepaperbull.com » improve your blog - learn from the errors of 48 others
  27. WalletRehab - Ways to save money » Blog Archive » Blogging Mistakes! Don’t let this happen to you!
  28. 48 Blogging Mistakes from the Blogosphere | www.mapelli.info
  29. Blogging mistakes to avoid
  30. 48 Common blogging mistakes to avoid by reading these articles | Left Blank
  31. Everyone Else’s Blogging Mistakes | Fighting to Stay Awake
  32. From One Blogger to Another - 48 Things To Do or Not To Do » Inspiration Bit
  33. Common Blogging Mistakes pt. 2
  34. How To Avoid The 48 Worst Blogging Mistakes « Faithful Web
  35. Blogging Mistakes | David Paul Robinson
  36. Blogging Mistakes Project Roundup: A Checklist of Important Things to Avoid
  37. hamelife » The Great Big Blogging Mistake Blues Album - 25 Heart-Breaking Tracks
  38. Getting to the root of things » Chris Makarsky’s blog
  39. DailyBlogTips.com Project: 48 Experiences of Blogging Mistakes at Clever Dude Personal Finance & Money
  40. Loosely Speaking—A Virtual Assistant’s Blog » Help! My blog host is sinking my WordPress blog!
  41.   Avoid these Blogging mistakes by eTechBuzz.com
  42. Instalación de un Blog: 40 Tips Practicos
  43. Optimizing my Wordpress Blog | 7milesdown
  44. SEO състезание
  45. Check Out These Blogging Mistakes « Legal Andrew
  46. Blogging Mistakes: Final List » All Tips and Tricks
  47. Top 7 blog mistakes to avoid :: David Airey :: Graphic and Logo Designer
  48. 40 de sfaturi despre cum să îţi faci un blog | CNET.ro
  49. My new identity » Blog Archive » Топ 7 БЛОГ грешки, които трябва да отбягвате
  50. Setting up Blog for the first time in WordPress??? Need a Step by Step Guide ?? No Problem.. have a look at the given resource at DailyBlogTips | Rahul's Blog

Got something to say?





Sponsors

Directory Submissions Premium WordPress Themes Why I recommend Doreo Hosting Maximize Your Rankings Online Invoicing For Freelancers Grow Your Internet Business Fast Click here to get The Blog Profits Blueprint

Popular Articles

Recent Articles

Subscribe via E-Mail


The Blogging Idol