How to install WordPress in a subdirectory


GO BANKRUPT! – Worst company – My another website was gone. Just 7days ago, but website was updated in some functionaltiy. Till 2days ago, my website was running. Today when I opened my site, the website is missing. Only partial image or login part is showing. Backup funcionality is also that I was aware that it has been broken. They do not fix and did not fix it. When I contacted the tech support, most people do not remember what they talked and after couple of mins, they are always asking same question or I have to tell them again and again. They made me laugh hard,,,, I cannot believe that they are receing some stars for review. As much as you stay with them, you will see or something will happen to you.


This quick video will show you how to install WordPress in a subdirectory using a standard cPanel web hosting interface. There are many reasons why you might want to install WordPress in a subdirectory, such as to have a secondary WordPress site to use for an event or with a theme like OptimizePress to manage your squeeze and sales pages.

Terri Orlowski

35 Comments
  • Aaron Lopez
    Posted at 17:21h, 05 November

    What if you have bought plugins or a theme? How do you move those from live production to sub directory for new development, then back?

  • Johnny Clingham
    Posted at 10:00h, 06 November

    Please confirm using the automatic install from Cpanel is no difference to a manual install, once i have have created the sub folder or i could get word press to create sub folder for me as part of the install do you see any issues with this in my case i want to create a forum using BB press etc but i want to keep it separate to my main domain and also keep the users separate as well

  • Onu Igbokwe
    Posted at 16:18h, 07 January

    Absolutely brilliant I've trawled the Internet looking for just this solution. Thanks ever so much.

  • zunalter
    Posted at 22:11h, 22 January

    Thank you so much, this was a real lifesaver!!

  • Laura Capponi
    Posted at 00:12h, 23 January

    Awesome tutorial! Super helpful, thank you!

  • PowerZone Marketing & Consulting
    Posted at 01:05h, 29 January

    This was very helpful. Thanks Terri!

  • Julian Osorio
    Posted at 20:20h, 19 February

    Wonderful explanation! Thank you!

  • neoqueto
    Posted at 08:06h, 21 March

    Direct access to phpMyAdmin (or whatever you prefer) is very handy, so you should definitely (but securely!) save your database password somewhere for further access.

    Very helpful video, thanks.

  • Wayne
    Posted at 23:59h, 27 March

    good explanation one of the best

  • Jeffrey Helms
    Posted at 02:02h, 13 April

    Thanks Terri, i really liked the video and learned some things i didnt know.

  • tayib salami
    Posted at 12:23h, 19 April

    you are the best, that was amazing and so simple, thanks so so so so so so much, really appreciate it

  • Marc
    Posted at 21:31h, 28 April

    Hi Terri, I followed every step up to and including typing my own domain.com/blog and I don't get a config screen from wp at all. How can i get to that wp config screen? Where you used squeezepage I used blog

  • My Drone Company
    Posted at 16:27h, 19 May

    Great Tutorial!!!! Thanks!

  • Tomer Levi
    Posted at 19:03h, 21 May

    i have wp installed on main dir and when try to do what you explain here i get message telling me " Already Installed

    You appear to have already installed WordPress. To reinstall please clear your old database tables first.

    Log I"

    pls advice

  • Brigida O'Donnell
    Posted at 22:07h, 25 June

    Thanks heaps Terri, this has worked out much better than what I was doing before. Thanks for posting this video.

  • dbreardon
    Posted at 16:49h, 29 August

    Why did you not just use the WordPress installation script in your cPanel? Is there a reason?

  • Sansar Lochan
    Posted at 10:09h, 02 September

    Hi Terri, thanks for your great tutorial. Now I have two wordpress installs, one in main domain and another in sub-directory. But can you tell me one thing? Will google see both wordpress sites as two different sites? How can I submit a sitemap again to tell google that we are same sites and traffic coming in both are same so I can GET boost in alexa ranking of both wordpress traffics? I am tensed because we have two different wordpress installs now, two different htaccess, two different robotext files….then how will google find both installations (first in main domain, second in sub-directory) as a single website?

  • Tom Walker
    Posted at 22:59h, 08 September

    just what I was looking for , simple and easy to follow 🙂

  • autumnruns
    Posted at 00:58h, 23 September

    Thank you SO much for this! I just followed by step by step and it worked perfectly.

  • be lue
    Posted at 16:19h, 04 October

    Explained perfectly! Thanks

  • Soul Shiftn
    Posted at 23:19h, 18 November

    Say it a sooo??? I found a youtube that doesn't smack the lips. Your awesome.

  • Rebecca Happy
    Posted at 19:46h, 10 December

    thankyou so much!!! this was very helpful

  • Carl Evans
    Posted at 21:02h, 14 December

    Can I do this to add a WordPress blog to my static website? 🙂

  • Gabriela Torres
    Posted at 16:43h, 15 December

    You saved my ass with this tutorial. Thank you so much!

  • Hari Patra
    Posted at 08:36h, 09 January

    great tutorial I got a lot of information thank u fro sharing your information.

  • ELife Who
    Posted at 15:41h, 22 January

    Great tutorial! Even a slow-learner like me understood very well

  • P Win
    Posted at 02:02h, 02 February

    Hi Terri, thank you so much for this wonderful tutorial. I was wondered is there any different between installing wordpress and a wordpress-theme in the subdirectory? I was trying to install wordpress-theme and after finishing it. it does not show me the "Create Configuration File." Of course I followed your instruction. but I just wondered the different between install wordpress itself and the wordpress-theme gave me that issue (which was no "…wp-admin" any idea? thanks

  • Mister L
    Posted at 19:37h, 02 February

    Thank you

  • Ish Laos
    Posted at 02:04h, 15 February

    Here is a trick question for you (And I'm hoping you can really answer this one). To get to that subdomain, you have to type in http://www.website.com/subdomain, correct? How do we make it so it goes to an entirely different domain all together? So that same exact site you created will display instead at http://www.myotherwebsite.com? In other words, no association whatsoever with http://www.website.com.

  • Merriment
    Posted at 11:49h, 05 March

    I have created a subdirectory. And I have two wordpress installed, one in root and the other in subdirectory. Both of them contains posts and pages. I want to access both and it's happening. But when I am hiding the subdirectory slug from the post URL by modifying the .htaccess file, the sub directory name got hidden as per the requirement but the posts of my main domain is inaccessible and getting 404 error. Please suggest.

  • tranh son dau
    Posted at 19:46h, 06 March

    Thank you so muchhhhhhhh !

  • Yohan Zingile
    Posted at 17:53h, 10 March

    Hello, I have the wordpress website with posts already existing on it. I want and planning to create a subdirectory and install wordpress in it; However, I still want to use the same theme and keep the same posts I already have on my current worpress website (I want to keep the same content because I will make some very few changes and I am planning to add a specific geographic location to the subdirectory site created via google search console).
    How could I keep the same content (than my current worpress website), features, posts, and design in the new subdirectory worpress site I will create? Thanks for your help!

  • Desired2inspire D2I
    Posted at 14:08h, 15 March

    Oh thank you! This was so helpful!

  • ralph daryl Cedro
    Posted at 14:18h, 29 April

    Thank you Terri. You are a lifesaver to me. 🙂 I really appreciated this very simple, straight forward video. I really learned a lot! 🙂

  • Ataraxia Studios
    Posted at 03:53h, 15 May

    Thank you so much for the video! Easy to follow and straightfoward 🙂

    We plan to have multiple comic series on our site, would you recommend using subdirectories for this? THANKS! 😀

Post A Comment