Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I just got my own domain at
My host allows me to create subdomains.
Let's assume I have created
On my computer, the files are in a folder of my site: mySite/music (or
\music for the PC guys).
If I have a file (assume style.css) in the main folder, how can I link
it for the pages in my subdomain?
it seems that
<LINK REL=STYLESHEET HREF="../style.css" TYPE="text/css">
does not work. Must I put the _absolute_ reference in the files of my

François de Dardel /
Faber est suae quisque fortunae
Enlever le quatorze pour m'écrire
Remove fourteen in the address to send mail

Re: Subdomains

Quoted text here. Click to load it

Yes, another domain, and a stylesheet outside it's document root would  
require an absolute reference. doesn't make sense, and isn't accessable to  
the visitor.
Rik Wasmus

Re: Subdomains

.oO(François de Dardel)

Quoted text here. Click to load it

That's just one way of setting up a subdomain, there are others. In fact
the above is a rather bad one, since it allows to access the subdomain's
content with a URL relative to the main site: vs.

The latter might lead to unexpected results. If possible the document
root of the subdomain should be placed _outside_ of the main site's
document root. Then both sites will be completely separated, as it
should be.

Quoted text here. Click to load it

Yes. From a browser's POV a subdomain is a completely different server.
To access such resources you always have to use an absolute URL.


Site Timeline