开发者

400 Bad Request With CSS .htaccess rule

I'm trying to whitelabel the Zend framework, so I've created folder in application called Site.

This url: http://local.branch.test.com/site-css/1/layout.css returns a 400 Bad Request.

With the following rule:

 RewriteRule ^site-css/([0-9]+)/(.*)$    ../application/site/$1/design/css/$2 [L]

Full .htaccess

RewriteEngine on
Rewrite开发者_Python百科Cond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule !\.(js|ico|gif|jpg|png|css)$ /index.php

RewriteRule ^site-css/([0-9]+)/(.*)$     ../application/site/$1/design/css/$2 [L]

Ideas?


Try

RewriteBase /
RewriteRule ^site-css/([0-9]+)/(.*)$     ../application/site/$1/design/css/$2 [L]


This is caused by apache being set up to point to /public. The project doesn't have access to read files outside of its root.

Therefore I have moved site into public.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜