去评论
dz插件网

静态文件CDN问题。

惧愁人
2023/02/11 11:41:16
在config_global.php配置成另外的域名:

  1. $_config['output']['staticurl']                 = 'https://image.oxxx.com/static/';        // 站点静态文件路径,“/”结尾


1、前端帖子页面有些地方会多一个/杠,比如变成这样:导致出现404。
  1. https://image.oxxx.com/static//image/magic/checkonline.small.gif


2、页面中有有些地方替换有问题:
  1. <meta name="msapplication-task" content="name=首页;action-uri=https://www.oxxx.com/portal.php;icon-uri=https://www.oxxx.com/https://image.oxxx.com/static/image/common/portal.ico" /><meta name="msapplication-task" content="name=论坛;action-uri=https://www.oxxx.com/forum.php;icon-uri=https://www.oxxx.com/https://image.oxxx.com/static/image/common/bbs.ico" /> <meta name="msapplication-task" content="name=家园;action-uri=https://www.oxxx.com/home.php;icon-uri=https://www.oxxx.com/https://image.oxxx.com/static/image/common/home.ico" />


3、后台有地方没有替换:比如common.js
  1. <meta content="Comsenz Inc." name="Copyright" /> <link rel="stylesheet"  type="text/css" media="all" /> <link rel="stylesheet"  type="text/css" media="all" /> <script src="static/js/common.js?q6B" type="text/javascript"></script> </head> <body>