我创建了vhost
<VirtualHost *:80>
DocumentRoot "/Users/Almond/Sites/Projet1/web"
ServerName local.dev
ErrorLog "/private/var/log/apache2/dummy-host2.example.com-error_log"
CustomLog "/private/var/log/apache2/dummy-host2.example.com-access_log" common
<Directory /Users/Almond/Sites/Projet1/web>
Require all granted
AllowOverride All
Order Allow,Deny
Allow from All
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>
</Directory>
</VirtualHost>
但是当我把链接
等页面放入页面时,我无法绑定我的样式css<link rel="stylesheet" href="style.css">
在我的浏览器上,样式css不起作用,我告诉我链接是local.dev/style.css
所以我不明白我做了修改。