Click to See Complete Forum and Search --> : Php Sub domain Directory & Style Sheet problem


Scrat
11-18-2006, 03:42 PM
Hello,

I have been around and around with this problem and have not found a solution I have a subdomain on a linux box using cpanel and in my site it puts another folder called support so i create a support page and validated everything here is the problem

If i call the scrip http://mydomain.com/support

It works like it should

Now if i call it http://support.mydomain.com

it wont use the style sheet everything goes white it there anyway to call this file

its path is the same for both names

public_html/support

bathurst_guy
11-18-2006, 07:47 PM
Don't call it with public_html/ as the browser doesn't know where this folder is because it is below where it is accessable to it. Just link relative to the file. Is the CSS in the same folder (support folder) ? if so just link to style.css

Scrat
11-18-2006, 08:06 PM
Ok here is what it is showing

http://mydomain.com/support/support.php
view source shows
<link href="../Styles/blue/Style.css" type="text/css" rel="stylesheet">

http://support.mydomain.com/support.php
view source shows

<link href="../Styles/blue/Style.css" type="text/css" rel="stylesheet">

Scrat
11-18-2006, 08:10 PM
the style sheet is in the public html folder

tabzter
11-18-2006, 09:06 PM
try using full http url for the link href tag, eg

<link href="http://www.yoursite.com/Styles/blue/Style.css" type="text/css" rel="stylesheet">