Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Julian Ptak
30,920 PointsInstalling Wordpress to a Subdomain
Hey all,
So I'm fairly new to Wordpress development and I'm just curious if there are any significantly different hurdles to jump through to install Wordpress on a subdomain instead of the root directory. Anything I should know about that needs to be done differently?
Clarification:
I'm asking about if I have my own domain say www.julian.com and I want to install wordpress to a subdomain of that so say:
www.julian.com/heresMyWordpressSite
Is that possible? Is there anything different about it than just installing to the root directory?

Julian Ptak
30,920 PointsThanks, Nicholas! I updated the question.
2 Answers

Zac Gordon
Treehouse Guest TeacherYou can do this and there is not any difference, everything will work properly. Almost all of my Treehouse WP example sites are in subdirectories.

Erik Krieg
43,038 PointsI think what you want is called a subdirectory, not a subdomain, don't quote me on it :P
Also, as far as I know the process is the same, but you will need to create/specify the folder you are installing WordPress in.

Rasmus Ishøi
Courses Plus Student 157 PointsErik is right, you're not asking for a subdomain, but a subdirectory instead. Both options is however possible, but you probably won't be able to use permalinks, because of the rewrite module on most servers.
Nicholas Bennett
4,698 PointsNicholas Bennett
4,698 PointsWhen you say "on a subdomain instead of the root directory" it's a little unclear what you want. Are you asking about subdomains like http://wordpress.example.com instead of just http://example.com? Or are you talking about http://example.com/wordpress/ instead of http://example.com?