开发者

Htaccess Concatenarion

I use this code to concatenare CSS and Javascript:

<FilesMa开发者_开发知识库tch "\.combined\.js$">
  Options +Includes
  AddOutputFilterByType INCLUDES application/javascript application/json
  SetOutputFilter INCLUDES
</FilesMatch>
<FilesMatch "\.combined\.css$">
  Options +Includes
  AddOutputFilterByType INCLUDES text/css
  SetOutputFilter INCLUDES
</FilesMatch>

but it doesnt work


So you're using

<!--#include file="path/to/a/file.js" -->
<!--#include file="path/to/another/file.js" -->

in a master JS or CSS file, right?

This is what is being enabled by the .htaccess code posted in your question.


I also used same code for concatenating my js and css file. It works pefectly in my local machine..but don't work in live. I am using ubutu linux server.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜