HostAlamo

How to install WordPress in a subdirectory

How to install WordPress in a subdirectory

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.

50 thoughts on “How to install WordPress in a subdirectory”

  1. Ataraxia Studios

    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! 😀

  2. 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

  3. ralph daryl Cedro

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

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

  5. Johnny Clingham

    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

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

  7. 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.

  8. Hello! great tutorial. I have one problem. I followed your instructions I put the subd in public_html and now I cant figure which domain I have to use in order to create configuration file to finish setting up WP. I think there are multiple domains/site hosted here. Forgive me if I sound like a noob, I am trying to learn.

  9. Acushla Belly Dance

    HI Terri! thanks for the video : )
    I am a little confused about whether i need to buy another subdomain to use optimizePress or if i can do it the way you are showing. Im wanting to create online courses and use Optimizepress as a membership. 
    I was told that i should create a subdomain and download a fresh wordpress site and then upload OP theme. Then someone else said upload a fresh WordPress to a sub directory and then upload the OP theme to that. thanks so much!

  10. Great video. Thanks. I’m rebuilding a site for a client. He wants the new website to be built on his current domain…just like your tutorial. After the new website is built, what do you do to get rid of the old website, move the new website out of the sub directory, and then set up and 301 redirects (the new website will have different page names)?

  11. Brigida O'Donnell

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

  12. 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?

  13. 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?

  14. Thank you, thank you, thank you, thank you…. Great tutorial, simple and with a nice voice… THANK YOU!

  15. Hi thanks. I’ve been trying many methods to create sub directly. But this clearly explains it from very basic level. Thanks

  16. Terri – really appreciate the info on your video.
    Unfortunately, I’ve managed to mess up something on my install. I have one subfolder that is functioning like a champ. I installed a second subfolder, didn’t like the name so I deleted it with all file and restarted – I used initial capitals for the name and changed it. Now I can do the complete install following your instruction, and everything seems to go right, however when I attempt to log into the subfolder I get a "page not found" message and am redirected to the main page.

    Any ideas on what I have managed to do to myself and how I might fix it?  Thank you!!

  17. 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!

  18. 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.

  19. 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

  20. Thanks for this. I’m going to use this method to develop my replacement site for the existing site that is at the root level. I want to use the same d/b for both. Can you advise me on how to go about that please?

Leave a Comment

Your email address will not be published.

Scroll to Top