Grow your CSS skills. Land your dream job.

Css broken and Domain name.

  • # April 15, 2013 at 5:17 pm

    Hi everyone!

    I’ve been looking for hours and can’t find any solution so I’m calling for help!

    Here’s my story, I’ve uploaded a perfectly functional website on my server (html, css and js working smoothly). Here’s how it looks http://www.gholubowicz.com/Chewbahat/One-pager/
    BUT when I setup the domain name, the page is broken, Css not working neither the js scripts. (http://gholubowicz.com/Chewbahat/One-pager/download/chewbahat_broken.jpg).

    Dns is set up correctly, and the redirect of the domain name works fine (type chewbah.at and see, it works!) Any idea?

    # April 15, 2013 at 5:46 pm

    probably is the links to the stylesheets that cause the problem.try changing them to absolute paths like http://www.gholubowicz.com/css/style.css and not /css/style.css

    # April 15, 2013 at 5:54 pm

    Hello pixelgrid!
    Thanks for your comment. Indeed I forgot to mention that, but I’ve tried http://www.gholubowicz.com/Chewbahat/One-pager/css/style.css and http://chewbah.at/css/style.css with and without the www.

    # April 15, 2013 at 6:21 pm

    If you open the network tab of the developer tools (in Chrome F12), and refresh the page, you should be able to see if the css files are requested, and what the server response is (if any). Maybe that will give you more info.

    # April 15, 2013 at 6:39 pm

    Hi CrocoDillon!

    Ok, the inspect element tab says that no css file or js file has been found (404 error) when I’ve directed the domain name chewbah.at to the site. But when I use the http://www.gholubowicz.com/Chewbahat/One-pager/ address, the browser founds everything. I’m thinking maybe the .htaccess? But I’ve no clue how to correct it. (I mean I know where to find it, and how to edit it, but no clue what to write in).

    # April 15, 2013 at 7:03 pm

    For me, chewbah.at redirects to http://chewbahat.tumblr.com/ for me so can’t test.

    In the network tab if you click on the filename you can see in the header tab the request url, if you enter this url manually in the browser do you get the file or an 404 as well?

    # April 16, 2013 at 12:31 pm

    Hello, thanks for the help. I’ve found what it was… and it was stupid.

    The domain name .at just doesn’t work with a U.S based server… I’ve transfered the website in Europe and it’s now working smoothly here: http://chewbah.at

    Thanks for your help.

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".