.htaccess file :
Options +FollowSymLinks -MultiViews -Indexes
RewriteEngine On
RewriteBase /
RewriteRule ^(.*)$ index.php?url=$1 [NC,QSA,L] # <= This is the problem
HTML Head :
<!DOCTYPE html>
<html>
<head>
<script src="./scripts/jquery-3.4.1.min.js"></script>
<link rel="stylesheet" href="./styles/styles.css">
</head>
[...]
It seems that the RewriteRule prevents all local scripts and stylesheets from loading...
How can I solve that problem ?
with your RewriteRule, you rewrite all files, even ./*.js and ./*.css files.
You should add RewriteCond this to try:
Options +FollowSymLinks -MultiViews -Indexes
RewriteEngine On
RewriteBase /
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [NC,QSA,L] # <= This is the problem
Thus apache rewrites nonexistent files such as foo, bar, ... to index.php.