20 responses to “How to: Install Wordpress in a sub folder”

  1. kim

    Thank you very much for your tutorial. helped me a lot. I tested it first on a local installation of wordpress, and works perfect. I will be able now to do it on my website as I am intending to merge my portfolio and existing blog in wordpress. the portfolio will be pages.

  2. Pandora Bracelets

    Please feel free to ask questions in the comments section below. I’ll help you to get this set up and working. Thanks

  3. aidan o driscoll

    You say in step 11:

    ” .. you should manually copy into your .htaccess file (in the same directory as the main index.php file.)”

    When you saw “in the same directory as the main index.php file” – is the main index.php file in the Root ( http://example.com/ ) or the index file in the Wordpress sub dir ( http://example.com/wordpress) ?

    Cheers
    Aidan

  4. admin

    Aidan,
    I’m referring to the root web directory. Let me know if this helps!
    -Marco

  5. Monster Energy Hats

    I’m referring to the root web directory. Let me know if this helps!

  6. Seo Company India

    done it ……………good tips ……….my query has been solved

  7. Imobiliária João Pessoa

    I did follow your steps and installed WP into a subdirectory for multilingual website: /pt/ & /en/ but it doesn’t work properly for the second language and twice the folder into the url like this ../pt/pt/…
    I don’t know what’s wrong… could you help? thks anyway

  8. Antonio

    Hi Marco,

    Hi have been reading you blog and I have to say that I found it very interesting. I have a question regarding a similar scenario.

    I have a static website installed in the root folder: http://www.atwebpresence.com

    I have recently enabled a wordpress blog that I have decided of installing under the a sub-folder of the root called blog: http://www.atwebpresence.com/blog/

    My question is about the the RSS feed url. Normally, this is being generated by wordpress as follow: http://www.atwebpresence.com/feed/

    The problem is that a conflict of the .htaccess file between the root and the wordpress folder is preventing preventing this url from being built properly. I have found out that the real RSS feed url should be this one instead:
    http://www.atwebpresence.com/blog/feed/

    I was wondering if you could give me a hand with this.

    Best regards,
    Antonio

  9. Imobiliárias João Pessoa

    Thanks Marco,
    you’re right it works great for the core files into a sub directory, but still looking for ‘multi’multilingual install… I’ve tried WPML plugin, but it’s not the best for all theme, widgets and plugins tanslations…
    I let you know if I find out, it might help some visitors of your great site.
    Cheers

  10. dan

    Great post. Thank you for sharing!

    Is it possible to set up WP in the root domain such as http://www.mysite.com and also in the sub-directories or sub-folders as well? For example, If I want a separate database and WP set up for each of the 3 locations such as http://www.mysite.com/location1
    http://www.mysite.com/location2
    http://www.mysite.com/location3

    Possible or will it conflict with the root installation on http://www.mysite.com? Thanks.

  11. Angie

    Hi Marco
    I have a strange problem that has happened both times (two sites) when I have moved the site from the subdirectory to the root to go live. All instructions followed exactly. And the site works in the root. Both sites have a few static pages and a blog page with comments which worked fine when in the subfolder. However, when I move the site to the root, blog comment functionality stops working – I can no longer see the reply box and the links on the right: recent posts, recent comments, archives etc look like hyperlinks but do not click. I have been searching for hours for a solution but can’t find one. I am fairly new to Wordpress so perhaps I am doing something wrong. Any help much appreciated.

  12. Tony

    Thank you for the tutorial, this will help me configure my installation correctly.

  13. Rich

    Hi, thanks for dealing with this particular topic. I think I’m having a little different issue with my WordPress. I put it in a /wordpress subfolder to begin with during install, and I can resolve the new URL to get to the main blog page, and I can go directly to each of the blogs using their respective URLs with category slugs, etc.

    But I can’t seem to get the blogs seen or indexed by search engines. I have a theory that having a second sitemap.xml (and lots of other files for the blog) beneath the main site url in a subdirectory may be making it hard to crawl and index. Furthermore, I have an “index.php” already in my root directory and it’s my homepage for my website, so I don’t feel like overwriting that with one from Wordpress. Does that make any sense? Could it be that my problem is that I have two full-blown websites, one under the other?

    Thanks much in advance for any advice.

  14. Stuart

    Hi

    Hopefully you can point me in the right direction. I have a site http://www.refinishingtouch.co.uk that structures much of its content under subfolders e.g. http://www.refinishingtouch.co.uk/bathrooms/index.php.

    It also has a wordpress blog installed under /blog/ and while I can get to the blog correctly at http://www.refinishingtouch.co.uk/blog, the permalinks to the individual posts are incorrect as they do not have the /blog/ folder e.g. http://www.refinishingtouch.co.uk/?p=22 (which causes the home page to be displayed) instead of http://www.refinishingtouch.co.uk/blog/?p=22.

    Wordpress URL is http://www.refinishingtouch.co.uk/blog
    Site URL is http://www.refinishingtouch.co.uk

    I’ve tried with various configurations of .htaccess in web root folder as well as no .htaccess – any idea what I am doing wrong?

    Also if I try changing the permalink to anything other than default I get the “This is somewhat embarrassing, isn’t it? It seems we can’t find what you’re looking for. Perhaps searching, or one of the links below, can help.” error page. The instant I switch back to the default permalink setting the blog front page is restored with the posts listed.

    TIA

    Stuart

  15. Web Design

    Great tutorial – very well written and with great result.

Leave a Reply

Cloud Computing & Cloud Hosting by Rackspace Pagely Wordpress Hosting
WooThemes - WordPress themes for everyone advertisment advertisment

JustForYou (MyBlogLog)

Books

  • Naked Conversations
  • z – Amazon Prime – FREE Shipping

Listening

  • Mojo Club – HH
  • Motor Music FM
  • Pandora
  • Soul Allnighter

Watching

  • Dr.Horrible