开发者

400 Bad Request With CSS .htaccess rule

开发者 https://www.devze.com 2023-01-08 15:15 出处:网络
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.

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

精彩评论

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