0
我試圖訪問我的網站這個鏈接來訪問我的.css.php http://mydomain.com/lib/utils/utils.js.php http://mydomain.com/resources/script/myapp.home.js.php無法使用的.htaccess
我的.htaccess文件是這樣的
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^resources/(.*).(css\.php|js\.php) ../build/resources/$1.$2 [L]
RewriteRule ^lib/(.*).(css\.php|js\.php) ../build/lib/$1.$2 [L]
RewriteRule ^lib/(.*).(css|js|txt|jpeg|jpg|png|gif|eot|svg|ttf|woff) ../lib/$1.$2 [L]
RewriteRule ^resources/(.*).(css|js|txt|jpeg|jpg|png|gif|eot|svg|ttf|woff) ../resources/$1.$2 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
</IfModule>
我的文件夾結構是
app/handler/x.php
lib/utils/utils.js
build/resources/script/myapp.home.js.php
build/lib/utils/utils.js.php
resources/script/myapp.home.js
web/index.php
web/.htacsess
mydomain.com指向Web文件夾
但我能夠訪問此鏈接: - http://mydomain.com/index.php 而是通過.htacess所有其他文件,我得到的是400錯誤的請求
其已經存在 – LNT