0
File結構:重寫規則不工作的CSS,JS和圖像
htdoc
|--project
|--admin
|--css
|--js
|--images
|--.htaccess
|--index.php
.htaccess文件包含:
RewriteEngine on
RewriteBase /project/admin/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?PATH_INFO=$1 [L,QSA]
當我經歷以下鏈接每一件事情是否工作正常。
localhost/project/admin/profile
但是,當我經歷以下鏈接的CSS和JS圖片無法載入
localhost/project/admin/profile/
的index.php 的CSS鏈接就是這樣
href="css/style.css"
請幫助。