CSS not loading into godaddy

I researched this topic on stackoverflow and tried the suggested solutions and still haven't solved the problem. I have two sites in Godaddy built in exactly the same way, but one loads the css and the other doesn't. Site not loading css loads fine on free hosting. I've tried checking case, path and folder problems, permissions and whatever I can think of and still don't get the css loaded. The css is in the css folder and everything looks fine. Here is my code:

    <link rel="stylesheet" href="/css/styles.css" type="text/css"/>
    <link rel="stylesheet" href="/css/flexslider.css" type="text/css"/>

      

url doesn't work in godaddy: www.progeneticlagarita.com

url working: www.progeneticlagarita.x10host.com

Thanks in advance for any light!

+3


source to share


5 answers


Just to be sure:

1) Can you put absolute paths in css files instead of relative paths and check. For example:http://www.progeneticlagarita.com/css/styles.css



2) Also try opening this absolute path directly in the browser.

0


source


One potential reason, since these are not the same domains, is there two separate DNS zone files to manage each possible. I pinged both domains and got two separate IP addresses:

enter image description here



I'm not 100% sure if this will solve your problem, but if your site is on only one server, the fact that only one of the IP addresses is working can help you track down your problem.

Hope this helps!

0


source


Have you tried contacting support? HTTP ERROR 500 is a server error or your web server configuration is preventing you from accessing your assets link / path or database error. I'm not a server admin, but my answer is based on my previous experience and what I did to debug it.

Some related data:

Error 500 and the Server responded with a status of 500 (Internal Server Error)

0


source


One of the most common causes of a 500 error is a misconfigured file .htaccess

. It also explains why your site is running on one server and not another, because different servers can have different configurations.

Check if you have a file .htaccess

inside your directory /css/

. Remember that this file is hidden by default, make sure you enable "Show hidden files" if available. If there is no such file, see If the parent directory contains a file .htaccess

with a directory link /css/

. Even the smallest syntax error will give you an error, usually a 500 error. Try commenting out some lines by adding in front of you #

or renaming the whole file to something else (remember to back up any file before editing).

The reason I think the problem is with the folder /css/

is because only this folder seems to be inaccessible. If you try to visit http://www.progeneticlagarita.com/img/ it will show a 403 Forbidden error (Invalid Directory List).

http://www.progeneticlagarita.com/css/ , however, gives a different error: 500 Internal Server Error.

Several suggestions to look for in your file .htaccess

:

  • AddType application/x-httpd-php5 php

    This (or similar) command will enable a specific PHP version on your server. This particular team works for HostGator, but NOT GoDaddy.

  • Option Includes

    If you use "Options-Enable", "Options-Includes" or "Options + Includes" in your .htaccess file, your site may display "Internal Server Error 500". ( GoDaddy support )

0


source


<link rel="stylesheet" href="/css/styles.css" type="text/css"/>
<link rel="stylesheet" href="/css/flexslider.css" type="text/css"/>

      

This issue is related to the MIME types that are specific to the walking Godadddy. in the settings of the web server, you must define the types of MIME used. to make it simple MIME types are the types of files or media we use in our code. It can be a simple CSS file or an image or instance.

I prefer to use all major MIME types. all of which are listed in this link

Better understanding of Windows settings - check this

0


source







All Articles