I have a problem with .htaccess, namely with CSS, how to solve?

There is a link
project2/profile
My CSS code works well and the whole layout is displayed

But when I add the text after the / that is
project2/profile/Valera123

CSS just stops working, i.e. the website thinks that I turn to another file, but the code .htaccess is
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [L]


In addition, when I add a file path to CSS "../css/style.css" everything works fine, but I can't add to each reference to "../", it's just not correctly, please solve the problem
April 3rd 20 at 18:37
2 answers
April 3rd 20 at 18:39
Solution
add to each reference to "../", it's just not correctly

Who is invented?
Well, add in index.php
<base href="/">
Yes, I solved this problem by adding "/" to the beginning of the link. I just didn't know it, that's the problem flew - Bertram_Rau commented on April 3rd 20 at 18:42
April 3rd 20 at 18:41
A website is static, go dynamic? If dynamic, what language?

Find more questions by tags CSSApachehtaccess