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! While you're at it, check out some resources Treehouse students have shared here.

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

WordPress

Julian Ptak
Julian Ptak
30,920 Points

Installing 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?

Nicholas Bennett
Nicholas Bennett
4,698 Points

When 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?

Julian Ptak
Julian Ptak
30,920 Points

Thanks, Nicholas! I updated the question.

2 Answers

Zac Gordon
STAFF
Zac Gordon
Treehouse Guest Teacher

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

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

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