www.webdeveloper.com
Results 1 to 5 of 5

Thread: Php Sub domain Directory & Style Sheet problem

  1. #1
    Join Date
    Nov 2006
    Posts
    3

    Php Sub domain Directory & Style Sheet problem

    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

  2. #2
    Join Date
    Apr 2005
    Location
    Bathurst, NSW, Australia
    Posts
    3,357
    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

  3. #3
    Join Date
    Nov 2006
    Posts
    3
    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">

  4. #4
    Join Date
    Nov 2006
    Posts
    3
    the style sheet is in the public html folder

  5. #5
    Join Date
    Aug 2005
    Location
    The Hill Ch' Hill
    Posts
    381
    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">

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles