CDN线上rewrite规则

2019-12-09云端CDN rewrite规则:

^/.{6}[0-9]{8}/([0-9]{2})_([0-9]{2})/([0-9]+)(png|jpeg|jpg|gif)(.*)$ /uploads/picture/2016/$1/$2/$3.$4$5
^/.{6}[0-9]{8}/([0-9]{2})_([0-9]{2})/(.*)$ /uploads/picture/2016/$1/$2/$3
^/[a-zA-Z0-9]+/([0-9][0-9])([0-9][0-9])/([0-9]+)(png|jpeg|jpg|gif)(.*)$ /uploads/picture/2016/$1/$2/$3.$4$5
^/.{6}[0-9]+/([0-9]{2})([0-9]{2})/(.*)$ /uploads/picture/2016/$1/$2/$3
^/.{6}[0-9]{4}/(.*)$ /uploads/picture/2016/$1
^/.{6}[0-9]{4}[0-9]{8}/(.*)$ /uploads/picture/$1
^/[0-9]+\.([0-9]+)\.([0-9]+)\.([0-9]+)\.(.*)$ /uploads/picture/$1/$2/$3/$4
^/[0-9]+/([0-9][0-9])([0-9][0-9])/(.*)$ /uploads/picture/2016/$1/$2/$3
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.

访问的url链接:

https://x.ojgoy.cn/MTYwMA16001600/10_16/1101965940.gif/base64?0.3907896284177985
https://x.ojgoy.cn/MTYwMA16001600/10_16/1101965940.gif
https://x.ojgoy.cn/MTYwMA16001600/10_16/1101965940gif
https://x.ojgoy.cn/MTYwMA16001600/1016/1101965940gif
https://x.ojgoy.cn/MTYwMA16001600/1016/1101965940.gif
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.

2019-12-09融合云rewrite规则:

^/[a-zA-Z0-9]+/([0-9][0-9])([0-9][0-9])/([0-9]+)(png|jpeg|jpg|gif)(.*)$ /uploads/picture/2016/$1/$2/$3.$4$5
^/.{6}[0-9]+/([0-9]{2})([0-9]{2})/(.*)$ /uploads/picture/2016/$1/$2/$3
^/.{6}[0-9]{4}/(.*)$ /uploads/picture/2016/$1
^/.{6}[0-9]{4}[0-9]{8}/(.*)$ /uploads/picture/$1
^/[0-9]+\.([0-9]+)\.([0-9]+)\.([0-9]+)\.(.*)$ /uploads/picture/$1/$2/$3/$4
^/[0-9]+/([0-9][0-9])([0-9][0-9])/(.*)$ /uploads/picture/2016/$1/$2/$3
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
posted @ 2019-12-09 14:43  勤奋的蓝猫  阅读(1)  评论(0编辑  收藏  举报  来源