route.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. return array
  3. (
  4. 'home' => 'index',
  5. 'default.html' => 'index',
  6. // 标签页
  7. '([0-9]+)' => 'tag?id=$1',
  8. '([0-9]+)/index.html' => 'tag?id=$1',
  9. // 普通文章页
  10. '([a-zA-Z_]+)/(.*?)/news_(.*?).html' => 'news?ckey=$1&time=$2&id=$3',
  11. '([a-zA-Z_]+)/(.*?)/news_(.*?)' => 'news?ckey=$1&time=$2&id=$3',
  12. //'([a-zA-Z_]+)/(.*?)/(.*?).html' => 'news?ckey=$1&time=$2&id=$3',
  13. '([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)/(.*?)/news_(.*?).html' => 'news?temp=$1&ckey=$2&time=$3&id=$4',
  14. // 大视野
  15. // '(.*?)/(.*?)/pic_(.*?).html' => 'picshow?ckey=$1&time=$2&id=$3',
  16. '(.*?)/(.*?)/pic_(.*?).html' => 'news?ckey=$1&time=$2&id=$3',
  17. // 二级栏目页
  18. '(style|stories|discovery|solutions|choice|design_art|events|events)' => 'channel?ckey=$1',
  19. // 静态页
  20. '(magazine|aboutus|wireless|cooperation|contactus|privacy|copyright|designerCenter).html' => '$1',
  21. // 预热页英文
  22. 'ad100/en' => 'AD100-2017-EN',
  23. // 过程页
  24. 'ad100/mid' => 'AD100-MID',
  25. // 终版 13 15 17首页
  26. 'ad100/([0-9]+)' => 'AD100-HOME?id=$1',
  27. // 终版 13 15 17作品分类页
  28. 'ad100/([0-9]+)/([0-9]+)' => 'AD100-CAT?id=$1&cat=$2',
  29. // 新版 13 15 17榜单页
  30. 'ad100/([0-9]+)/list' => 'AD100-LIST?id=$1',
  31. 'talents/([0-9]+)' => 'talents?id=$1',
  32. 'talents/([0-9]+)/([a-zA-Z_]+)' => 'talents?id=$1&lan=$2',
  33. // 新版设计师个人主页
  34. 'ad100/(.*?)/(.*?)/designer_(.*?).html' => 'designer?year=$1&time=$2&id=$3',
  35. 'talents/(.*?)/(.*?)/designer_(.*?).html' => 'designer?year=$1&time=$2&id=$3',
  36. // 杂志来源页————非搜索页
  37. 'search/m/(.*?).html' => 'source?slink=$1',
  38. // 搜索页
  39. 'search_test/(.*?)' => 'search?key=$1',
  40. );