How do I share files among subdomains?

How do I share files among subdomains?

Posted by: cgcody
Posted on: 2006-07-11 02:18:00

Hey fellow, dreamhosters. I'm new here (obviously)

I was wondering if anyone could help me with this.

I have several sites under sub-domains, but I want each one to share the same css layout. Relative path (../layout) doesn't seem to work.

Thanks. :)

Re: How do I share files among subdomains?

Posted by: Jewels
Posted on: 2006-07-11 03:16:00

You could either use a script to reference the css file, or just reference the file via one subdomain (href="http://sub.domain.com/css.css").

I think it would be simpler to just upload the file to multiple folders though, unless you have a lot of subdomains.

Re: How do I share files among subdomains?

Posted by: sdayman
Posted on: 2006-07-11 06:07:00

I'd go with the URL method. That way you can make changes to one CSS file and have it become effective on all sites.

-Scott

Re: How do I share files among subdomains?

Posted by: cgcody
Posted on: 2006-07-11 10:13:00

Yeah, I guess I'd have to go the URL method. I'd rather not have to edit each one. I just thought linking to the files in an absolute, rather then a relative fashion would be a bit unorthodox.

What would be involved in creating a script?
I don't know much about server side stuff. I took a large interest in html and flash/actionscripting back in highschool, but that's where it ends for me. My main interests are in 3D design.

Thanks for the help, both of you. :)

Tags: sub domainsrelative pathshare fileswork thankssubdomainsheyhelpobviously