saikoscs Posted June 30, 2017 Author Share 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? Quote Link to comment Share on other sites More sharing options...
Krydos Posted June 30, 2017 Share 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] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.