Relative pathname problem with subdomain

I’m not sure if this is the right forum to post this in. I just discovered that and are not the same. At the moment my client can use either but when he used none of the relative pathnames on the main domain work. Some of the files are on the main domain and i dont know how to access them.