saikoscs Posted June 30, 2017 Author Posted June 30, 2017 This is getting annoying. The website was working just fine a day ago or so. but now it won't load the css files. why? I can see them in the directory. I can see this file "/public_html/static/css/style.css" in my FTP. But, my site can't read it : http://saikosns.heliohost.org/static/css/style.css <-- Gives 404. What happened in past 2 days?
Krydos Posted June 30, 2017 Posted June 30, 2017 You have /home/saikosns/public_html/.htaccess that hasRewriteEngine On RewriteBase / RewriteRule ^(media/.*)$ - [L] RewriteRule ^(admin_media/.*)$ - [L] RewriteRule ^(ComicPub/dispatch\.wsgi/.*)$ - [L] RewriteRule ^(.*)$ ComicPub/dispatch.wsgi/$1 [QSA,PT,L] What that basically means is anything that isn't /media/ or /admin_media/ gets processed through dispatch.wsgi. Since you don't have a rule for /static/ it's not going to be able to access those files and gives a 404. Add this line after admin_media/RewriteRule ^(static/.*)$ - [L]
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now