如何整站替换关键字?
第三方包里有几处用了 fonts.googleapis.com 下的字体。
不改动第三方包的任何代码,该如何替换掉 'fonts.googleapis.com' 这个字符串?
可以在 项目内 (就是说通过PHP解决,不是通过nginx/caddy) 解决这个问题吗?
就是想这样:
before send response
str_replace('fonts.googleapis.com','360.fonts...',$response_content)
推荐文章: