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”
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! 😀
Awesome tutorial! Super helpful, thank you!
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
Thank you SO much for this! I just followed by step by step and it worked perfectly.
Say it a sooo??? I found a youtube that doesn’t smack the lips. Your awesome.
Thank you Terri. You are a lifesaver to me. 🙂 I really appreciated this very simple, straight forward video. I really learned a lot! 🙂
you are the best, that was amazing and so simple, thanks so so so so so so much, really appreciate it
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
Great Tutorial!!!! Thanks!
Oh thank you! This was so helpful!
Absolutely brilliant I’ve trawled the Internet looking for just this solution. Thanks ever so much.
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.
Thank you so much, this was a real lifesaver!!
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.
Worked great your video is quite easy to follow.Priceless thanks much
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!
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)?
Why did you not just use the WordPress installation script in your cPanel? Is there a reason?
Can I do this to add a WordPress blog to my static website? 🙂
You saved my ass with this tutorial. Thank you so much!
Thanks heaps Terri, this has worked out much better than what I was doing before. Thanks for posting this video.
very nice tutorial! thank you very much! have a great day 🙂
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?
This was very helpful. Thanks Terri!
Yea! It worked!
Thanks Terri, i really liked the video and learned some things i didnt know.
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?
Thank you, thank you, thank you, thank you…. Great tutorial, simple and with a nice voice… THANK YOU!
Neat and tidy, nice going
Wonderful explanation! Thank you!
Excellent tutorial. Thanks.
just what I was looking for , simple and easy to follow 🙂
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.
Hi thanks. I’ve been trying many methods to create sub directly. But this clearly explains it from very basic level. Thanks
Always good to see what other marketers are doing…
Explained perfectly! Thanks
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!!
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!
good explanation one of the best
Thank you so muchhhhhhhh !
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.
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
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?
great tutorial I got a lot of information thank u fro sharing your information.
Great tutorial! Even a slow-learner like me understood very well
Thanks for the very helpful video!
thankyou so much!!! this was very helpful