CSS is not being loaded

Asked

Viewed 150 times

0

I have a client’s website http://suprimark.com.br/ it was working normally, but when the service agency was accessing, it appeared like this, without css, and it has calls to the files .css. I have no idea what it is, but I tried to access the css file through the URL and says that it was not found, but the same is found in the folder yes, webroot from Cakephp. The error is 404

public_html/. htaccess

<IfModule mod_rewrite.c>
    RewriteEngine on
#    RewriteRule ^$ app/webroot/ [L]
 #   RewriteRule (.*) app/webroot/$1 [L]
</IfModule>

public_html/app/. htaccess

<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteRule    ^$    webroot/    [L]
    RewriteRule    (.*) webroot/$1    [L]
</IfModule>

public_html/app/webroot/. htaccess

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
</IfModule>
  • Checks the folder permission setting. You have placed the files in the folders webroot/css/ ? active on the server mod-rewrite ? places its code.

  • How is the configuration of mod_rewrite? Error is 404 or 403?

  • The error is 404. I posted the . htaccess files

  • which directory exactly is css? (example: webroot/css/home/style.css)

  • 1

    public_html/app/webroot/css/main.css, etc.

  • The css files are available within the app folder in http://suprimark.com.br/app/css/main.css

  • how do I change to pick from webroot ?

Show 2 more comments

1 answer

0


uncouth

<IfModule mod_rewrite.c>
   RewriteEngine on
   RewriteRule    ^$ app/webroot/    [L]
   RewriteRule    (.*) app/webroot/$1 [L]
</IfModule>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.