How do I share files among subdomains?


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. :slight_smile:


You could either use a script to reference the css file, or just reference the file via one subdomain (href=“”).

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

Save $97 on all yearly plans with the promo code [color=#CC0000]DREAMZAP[/color]


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.



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. :slight_smile: