CSS not loading in live but in local it works

http://drinkaroo.great-site.net/index.php
In live it doesnt load the css files and loads the ui as given below

1 Like


this is my folder structure

in local it loads correctly as below

I have tried by clearing the browser cache as well

Make sure files are present.
Take note free hosting is case sensitive.

Please show screenshot of your file layout on free hosting

5 Likes

Strange. Can you put other test file inside css directory and try to load from there?

4 Likes

What is inside your .htaccess file?

4 Likes

bootstrap also seems to be missing or possibly cased incorrectly

1 Like

I checked your .htaccess file, and I think the rules you have there are the problem.

There is only a few lines in there, that basically say: "if the request doesn’t start with /admin/, then reroute it to /admin/. Since the URL /assets/css/styles.min.css doesn’t start with /admin/, your rewrite rules tell the server to look for the file at /admin/assets/css/styles.min.css. And that file does not exist.

To fix this, you may want to add the following lines to the .htaccess file (above the RewriteRule and below the RewriteEngine On rule):

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

This will make it so that if the request file exists, it will be loaded as-is, and not be rerouted to /admin.

9 Likes

Thank you this worked

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.