routes.php 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. return [
  3. "/" => "site/index",
  4. "news" => "news/index",
  5. "news/clike" => "news/clike",
  6. "articles?/?"=> "articles/index",
  7. "podcasts"=> "podcasts/index",
  8. "video"=> "video/index",
  9. "talk"=> "video/index",
  10. "search" => "search/index",
  11. "/inquirer/"=>"inquirer/index",
  12. "/inquirer"=>"inquirer/index",
  13. "<action>"=> "site/<action>",
  14. "/news/infinity-newsfeed"=>"news/infinity-newsfeed",
  15. "/news/<id:\d+>/?"=>"news/view",
  16. "/voprosdnya/<id:\d+>/?"=>"news/view",
  17. "/news/preview/<uid:[a-z0-9\-]+>"=>"news/uid-view",
  18. "/news/<storyslug:[a-z0-9\-]+>-<id:(\d+)$>"=>"news/view",
  19. 'news/<topic:[a-zA-Z0-9\-_]+>'=>"news/index",
  20. "/<storyslug:[a-z0-9\-]+><id:\d+>"=>"news/view",
  21. "/amp/news/<id:\d+>/?"=>"amp/news",
  22. "/podcasts/<topic:[a-z0-9\-_]+>"=>"podcasts/topic",
  23. "/podcasts/<topic:[a-z0-9\-_]+>/<storyslug:[a-z0-9\-_]+>"=>"news/storyslug-view",
  24. "/podcasts/<id:\d+>/?"=>"news/view",
  25. "/video/<topic:[a-z0-9\-_]+>"=>"video/topic",
  26. "/video/<topic:[a-z0-9\-_]+>/<storyslug:[a-z0-9\-_]+>"=>"news/storyslug-view",
  27. "/video/<id:\d+>/?"=>"news/view",
  28. "/news/<rubric>/<storyslug:[a-z0-9\-]+><id:\d{6,}>"=>"news/view",
  29. //Далее поддержа урлов по слагу
  30. "/news/<storyslug:[a-z0-9\-]+>"=>"news/storyslug-view",
  31. "/news/<rubric>/<storyslug:[a-z0-9\-]+>/?"=>"news/storyslug-view",
  32. "/story/search"=>"news/ssearch",
  33. "/story/<topic:[[a-zA-Z0-9\-_]+>"=>"news/story",
  34. "/story/<topic:[[a-zA-Z0-9\-_]+>/?"=>"news/story",
  35. "/tags/search"=>"tags/search",
  36. "/tags/<topic:[[a-zA-Z0-9\-_]+>"=>"tags/topic",
  37. "/person/Ajaxlist"=>"manager/person/ajaxlist",
  38. "/person/<person:[[a-zA-Z0-9\-_]+>"=>"person/person",
  39. "/author/<author:[[a-zA-Z0-9\-_]+>"=>"author/view",
  40. "/inquirer/<id:[0-9]+>"=>"inquirer/view",
  41. "/polls/widget/<id:[0-9]+>/?"=>"inquirer/widget",
  42. "inquirer"=>"inquirer/viewold",
  43. "/interview/?"=>"video/index",
  44. ];