Welcome to the HostMaji Community! Ask a question or share a project to get started.

Website Deployment Issues

My CSS and JS files are not loading (404 error)

Author's Avatar

Asked by Arun Shukla

August 11, 2025

I just uploaded my static HTML/CSS website. The HTML page loads, but all the styles and scripts are giving 404 errors. The file paths seem correct.

1 Answer(s)

User Avatar

Community Support Verified

Aug 11, 2025 at 04:25 PM

Hello Arun, this is usually a file path issue. Check your HTML source code. Are you using relative paths (e.g., `css/style.css`) or root-relative paths (e.g., `/css/style.css`)? If your site is in a subdirectory, root-relative paths might not work as expected. Also, check the file permissions on your CSS/JS folders and files. They should be readable by the server (e.g., 644 for files, 755 for folders).

Your Answer

Please log in to post an answer.