routes.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. "<action>"=> "site/<action>",
  12. "/news/infinity-newsfeed"=>"news/infinity-newsfeed",
  13. "/news/<id:\d+>/?"=>"news/view",
  14. "/voprosdnya/<id:\d+>/?"=>"news/view",
  15. "/news/preview/<uid:[a-z0-9\-]+>"=>"news/uid-view",
  16. "/news/<storyslug:[a-z0-9\-]+>-<id:(\d+)$>"=>"news/view",
  17. 'news/<topic:[a-zA-Z0-9\-_]+>'=>"news/index",
  18. "/<storyslug:[a-z0-9\-]+><id:\d+>"=>"news/view",
  19. "/amp/news/<id:\d+>/?"=>"amp/news",
  20. "/podcasts/<topic:[a-z0-9\-_]+>"=>"podcasts/topic",
  21. "/podcasts/<topic:[a-z0-9\-_]+>/<storyslug:[a-z0-9\-_]+>"=>"news/storyslug-view",
  22. "/podcasts/<id:\d+>/?"=>"news/view",
  23. "/video/<topic:[a-z0-9\-_]+>"=>"video/topic",
  24. "/video/<topic:[a-z0-9\-_]+>/<storyslug:[a-z0-9\-_]+>"=>"news/storyslug-view",
  25. "/video/<id:\d+>/?"=>"news/view",
  26. "/news/<rubric>/<storyslug:[a-z0-9\-]+><id:\d{6,}>"=>"news/view",
  27. //Далее поддержа урлов по слагу
  28. "/news/<storyslug:[a-z0-9\-]+>"=>"news/storyslug-view",
  29. "/news/<rubric>/<storyslug:[a-z0-9\-]+>/?"=>"news/storyslug-view",
  30. "/story/search"=>"news/ssearch",
  31. "/story/<topic:[[a-zA-Z0-9\-_]+>"=>"news/story",
  32. "/story/<topic:[[a-zA-Z0-9\-_]+>/?"=>"news/story",
  33. "/tags/search"=>"tags/search",
  34. "/tags/<topic:[[a-zA-Z0-9\-_]+>"=>"tags/topic",
  35. "/person/Ajaxlist"=>"manager/person/ajaxlist",
  36. "/person/<person:[[a-zA-Z0-9\-_]+>"=>"person/person",
  37. "/author/<author:[[a-zA-Z0-9\-_]+>"=>"author/view",
  38. "/interview/?"=>"video/index",
  39. ];