1
我犯了一個PHP的路線類,路由工作正常,但我有一個問題,當我把這樣的:獲得來自指數子目錄(htaccess的)文件
.ng-perfil-avatar {
display: block;
background: #eee url(/img/bg.png);
}
在視圖中,IMG不就是我的網站是在子目錄/網頁/當我得到一個文件(img例如)它在尋求:localhost/img/bg.png
我需要看看`localhost/web/img/bg.png
(GET http://127.0.0.1/img/bg.png 404(未找到))
我如何配置.htaccess自動搜索d irectory(沒有被添加/ WEB /或子目錄中,如果改變變量)`
我的.htaccess是這樣的:
Options -MultiViews
RewriteEngine On
Options -Indexes
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]