Symfony 4 Incomplete CSS loading

  .htaccess, css, symfony

I just deployed my site on a VPS server that works under Debian10

I added the .htaccess file, the routes are working fine.

But I have a problem.

And I wonder how it is done.

However in dev mode, everything works fine.

The problem comes from the .htaccess file because when I delete this file the css works fine but the routes don’t.

Except that I do not master regular expressions very well

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

RewriteEngine on
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] Source: Symfony Questions