1 of 2
1
Multiple Sites Under a Single Domain Name
Posted: 27 June 2008 06:19 PM   [ Ignore ]  
Grad Student
Avatar
Rank
Total Posts:  45
Joined  06-17-2008

Howdy folks,

I purchased the MSM and installed it in my system folder and am wanting to manage three sites that will all be under the same domain name, just with different home page url’s (ie: site one, www.mysite.com—then site two would be www.mysite.com/sitetwo—and site three would be www.mysite.com/sitethree). Is this possible? If so, is there any documentation to how to do this? Would they share the same template folders, theme folders, etc. or should I create separate folders within my system folder to house each site?

Thanks a bunch!

 Signature 

Just waisting more time on the EE forums… smile


Matthew Todd
http://www.themaninthesea.com

Profile
 
 
Posted: 27 June 2008 10:58 PM   [ Ignore ]   [ # 1 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  307
Joined  01-20-2006

Yes this is definitely possible.

You do it the exact same as creating an MSM under another given domain.
Only exception is that your site_url, should be set to the mysite.com/sitetwo url instead of just mysite.com.

They do not have to share template groups (and probably isn’t recommended as some templates might be named similarly or exactly).
It appears your theme folder is global to your entire installation and is shared. (just looking in my own MSM site, there is no “site switcher” when editing your system preferences page.

You can obviously create your own asset folders (js/css/img/swf/etc) and any file upload folders inside your new “site root” as you need them.

 Signature 

AJ Penninga
Pretty Squares, LLC - http://www.prettysquares.com

Profile
 
 
Posted: 27 June 2008 11:13 PM   [ Ignore ]   [ # 2 ]  
Grad Student
Rank
Total Posts:  39
Joined  06-09-2008

Wouldn’t this mean he’s using up 3 of his full domain licenses for essentially the same domain… Isn’t there a better way to have ‘different’ sites on the ‘same’ domain, without using up full domain licenses for what are effectively sub-domains? Does that make sense? :S

 Signature 

andy.net.nz

Profile
 
 
Posted: 27 June 2008 11:37 PM   [ Ignore ]   [ # 3 ]  
Grad Student
Avatar
Rank
Total Posts:  45
Joined  06-17-2008

@aj - thanks for that. I will mess around with it this weekend and see what i can get going…


@andy - Yeah I am tracking your thought there, i totally understand the reasoning. The reason i got the MSM was to help the user of the site handle the mass amount of content they will be managing. There would end up being around 25+ weblogs, 150+ unique pages, etc on the site if i didn’t break them up… i figured i needed another level of organization so it wouldn’t be so overwhelming. I though the MSM would be an easy way to do it without getting to technical…

 Signature 

Just waisting more time on the EE forums… smile


Matthew Todd
http://www.themaninthesea.com

Profile
 
 
Posted: 27 June 2008 11:54 PM   [ Ignore ]   [ # 4 ]  
Grad Student
Rank
Total Posts:  39
Joined  06-09-2008

Thats cool, Im using MSM too, and have been wondering the best way to setup multiple 1 page independent sites in subdomains without having to buy a license for each one since they are all part of one primary domain. I can do it via template groups, but would prefer each subdomain to essentially be its own site within the CP.

 Signature 

andy.net.nz

Profile
 
 
Posted: 29 June 2008 09:03 AM   [ Ignore ]   [ # 5 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23524
Joined  05-20-2002

If you want to break it up so each site has effectively its own cp, the MSM is really the way to go.  Breaking up the frontend is easy enough to do w/out MSM (wiki- note old style isn’t officially supported).  But the cp is a different matter.  You could get some separation by creating multiple member groups and multiple logins.  But the MSM will always be slicker than that.

Make sense?  And want me to leave this thread open for a bit, or are we good to close it out?

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 29 June 2008 03:52 PM   [ Ignore ]   [ # 6 ]  
Grad Student
Avatar
Rank
Total Posts:  45
Joined  06-17-2008

thanks robin… go ahead and leave it open… i may still have a few more questions related to this when i go in a bit deeper tomorrow morn.

 Signature 

Just waisting more time on the EE forums… smile


Matthew Todd
http://www.themaninthesea.com

Profile
 
 
Posted: 29 June 2008 10:26 PM   [ Ignore ]   [ # 7 ]  
Grad Student
Avatar
Rank
Total Posts:  45
Joined  06-17-2008

Ok, I went through the User Guide and set up the other two sites (ie - www.mysite.com/sitetwo and www.mysite.com/sitethree). I copied my path.php and my index.php files into the new site folders that I created within my system folder… but I am getting a 404 not found when I try to view the two other sites i set up… did I do something wrong?... any theories/ideas/tricks?

 Signature 

Just waisting more time on the EE forums… smile


Matthew Todd
http://www.themaninthesea.com

Profile
 
 
Posted: 30 June 2008 05:33 AM   [ Ignore ]   [ # 8 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23524
Joined  05-20-2002

Still get the 404 if you go directly to www.mysite.com/sitetwo/index.php?  If the index file is there- it might error, but shouldn’t be a 404.  Unless it’s an EE 404, which is remotely possible.

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 30 June 2008 08:13 AM   [ Ignore ]   [ # 9 ]  
Grad Student
Avatar
Rank
Total Posts:  45
Joined  06-17-2008

yeah… when i navigate directly to the file i get the 404… and when i try to navigate through the ‘my site’ button in the cp it gives it to me.

 Signature 

Just waisting more time on the EE forums… smile


Matthew Todd
http://www.themaninthesea.com

Profile
 
 
Posted: 30 June 2008 08:15 AM   [ Ignore ]   [ # 10 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23524
Joined  05-20-2002

Hm- doesn’t make sense.  If the sites are private- can you pm me the top url- and let me know the names of the subfolders containing index.php?

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 30 June 2008 08:28 AM   [ Ignore ]   [ # 11 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23524
Joined  05-20-2002

Hm- yes, there is oddness there.  If you just stick a ‘hello world’ html file in one of the subfolders and try to access it, does it come up ok?  And who’s the host?

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 30 June 2008 08:45 AM   [ Ignore ]   [ # 12 ]  
Grad Student
Avatar
Rank
Total Posts:  45
Joined  06-17-2008

The host is dreamhost.com

yeah i tried the ‘hello world’ in my index file for the two sub sites and it still wasn’t going through. I know the files are correct. The only thing i can think of is either EE isnt seeing them or I dont have the path.php configured correctly for each file.

I changed the url to the root directory in my system admin for each site (www.mysite.com/sitetwo)... that wasn’t working so i threw system folder into the path (www.mysite.com/system/sitetwo) but again nothing there… but i dont think that should matter…

In my path.php i have the setting for the site short name name set up and the system path set up correctly… do I need to do a full url in the system path or is the “./system/sitetwo/” enough?

This is so weird because I can get my templates to write as files to the folders I have set up within each sub folder in my system… but i can’t view the templates because EE isn’t finding my index.php within each folder.

 Signature 

Just waisting more time on the EE forums… smile


Matthew Todd
http://www.themaninthesea.com

Profile
 
 
Posted: 30 June 2008 08:56 AM   [ Ignore ]   [ # 13 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23524
Joined  05-20-2002

No- I mean, just completely outside of EE.  Put up an index.html file in one of the subfolders.  Can you access that?  I’m trying to figure out if the server/htaccess is doing something funky before it ever hits ee.

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 30 June 2008 09:01 AM   [ Ignore ]   [ # 14 ]  
Grad Student
Avatar
Rank
Total Posts:  45
Joined  06-17-2008

oh ok…  I am trying that now… and… nope… it doesn’t work. robin, i pm’d you the link. (FYI, i switched it from test.html to index.html, but neither of them work)

 Signature 

Just waisting more time on the EE forums… smile


Matthew Todd
http://www.themaninthesea.com

Profile
 
 
Posted: 30 June 2008 09:27 AM   [ Ignore ]   [ # 15 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23524
Joined  05-20-2002

Yea- I got the 404 as well.  Which is just strange- not like making a subfolder is an odd thing to do- and it must generally work or you couldn’t have got EE going at all if system folder came back 404.

Anything odd in how you created the folder?  I mean- pretend EE isn’t even in the equation and it was a purely static site.  Did you create the folder the same way?  Any htaccess going on that might be in play?  An EE template w/the same name as the folder- or an EE page w/that name?

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 30 June 2008 09:41 AM   [ Ignore ]   [ # 16 ]  
Grad Student
Avatar
Rank
Total Posts:  45
Joined  06-17-2008

Yeah, I did create the folder in the exact same way I would have for a non EE site. The permissions are set how they normally would be. I haven’t done anything with the htaccess stuff so it should all be normal… This is a unique folder within the system and there is no other folder or template or weblog or category or anything with that name…

My only guess is that for some unknown reason EE just isn’t seeing my index or path files i put in the sub folder. Which I would think would boil down to something in the path.php file or the system admin settings… but i cant figure out why… Oh well… maybe i will get it tomorrow.

Thanks for your help Robin! Kudos to you! These tech forums always impress me with how quickly people respond… its unreal. I love it.

 Signature 

Just waisting more time on the EE forums… smile


Matthew Todd
http://www.themaninthesea.com

Profile
 
 
Posted: 30 June 2008 02:36 PM   [ Ignore ]   [ # 17 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15379
Joined  05-15-2004

Let us know how it goes, Matthew smile

 Signature 

Everything will be good in the end. If it’s not good, it’s not the end.

Profile
MSG
 
 
Posted: 08 July 2008 10:23 AM   [ Ignore ]   [ # 18 ]  
Grad Student
Avatar
Rank
Total Posts:  45
Joined  06-17-2008

ok guys… i am back on this and I want to ask a question. The license key…do I need a separate site license for the other two subdomains?

 Signature 

Just waisting more time on the EE forums… smile


Matthew Todd
http://www.themaninthesea.com

Profile
 
 
   
1 of 2
1
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64936 Total Logged-in Users: 58
Total Topics: 81904 Total Anonymous Users: 27
Total Replies: 440288 Total Guests: 282
Total Posts: 522192    
Members ( View Memberlist )