Unable to update css styles - 404 error when viewing source

Status
Not open for further replies.

berlyber

New Member
Messages
2
Reaction score
0
Points
1
I've got to be missing something really stupid. User error most likely.

I'm using FTP to upload my files, I can see them in cpanel, and I can see that the code reflects my changes. When navigating to my website however, the index.html page loads, but my styles aren't reflected here. If I go into the source, and click on the css - it shows a 404 page.

My guess is that I am pointing to these wrong, but everything I've tried gives me the same results.

HTML:
<link rel="stylesheet" href="/media/css/main.css">

Please tell me how I'm being stupid.
 

Dead-i

x10Hosting Support Ninja
Community Support
Messages
6,084
Reaction score
368
Points
83
Hi berlyber,

The code you provided looks fine. However, your website currently contains this line:
Code:
    <link rel="stylesheet" href="../public_html/Media/CSS/main.css">

Since your website domain points to the "public_html" directory already, you don't need to add it to the start of the address. Additionally, please remember that we are a Linux hosting service, and so directories are case sensitive. Your directory is called "media", rather than "Media". ;)

Thank you,
 

berlyber

New Member
Messages
2
Reaction score
0
Points
1
Hey,

Thank you. I actually have been playing around with it a lot, including changing the casing on my files, and how I was pointing the file.

Looks like my styles just appeared (must have been my last change, that probably hadn't updated when I posted, or when you were looking...)

Code:
<link rel="stylesheet" href="/media/css/main.css">

That's what I've got in there now, plus changed the casing on my files in cpanel. Rubberducky I guess.

Thanks for your help!
 
Status
Not open for further replies.
Top