开发者

Htaccess Concatenarion

开发者 https://www.devze.com 2023-03-28 12:17 出处:网络
I use this code to concatenare CSS and Javascript: <FilesMa开发者_开发知识库tch \"\\.combined\\.js$\">

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

精彩评论

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

关注公众号