You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.9 KiB

7 years ago
  1. <?php
  2. defined('BASEPATH') OR exit('No direct script access allowed');
  3. $route['default_controller'] = 'main';
  4. $route['404_override'] = '';
  5. $route['translate_uri_dashes'] = TRUE;
  6. // FAQ 라우팅 설정
  7. $route['customer/faq/(:num)'] = 'customer/faq/view/$1';
  8. $route['customer/faq/(:any)'] = 'customer/faq/index/$1';
  9. $route['customer/faq/(:any)/(:num)'] = 'customer/faq/view/$2/$1';
  10. // Q&A 라우팅 설정
  11. $route['customer/qna/(:num)'] = 'customer/qna/view/$1';
  12. $route['customer/qna/(:any)'] = 'customer/qna/index/$1';
  13. $route['customer/qna/(:any)/(:num)'] = 'customer/qna/view/$2/$1';
  14. $route['customer/qna/(:num)/write'] = 'customer/qna/write/$1';
  15. // 게시판 라우팅 설정
  16. $route['board/comment/modify/(:num)'] = "board/comment_modify/$1";
  17. $route['board/comment/reply/(:num)/(:num)'] = "board/comment_reply/$1/$2";
  18. $route['board/(:any)'] = "board/lists/$1";
  19. $route['board/(:any)/write'] = "board/write/$1";
  20. $route['board/(:any)/write/(:num)'] = "board/write/$1/$2";
  21. $route['board/(:any)/(:num)'] = "board/view/$1/$2";
  22. $route['board/(:any)/reply/(:num)'] = "board/reply/$1/$2";
  23. $route['board/(:any)/password/(:num)'] = "board/password/$1/$2";
  24. $route['board/(:any)/delete/(:num)'] = "board/delete/$1/$2";
  25. $route['board/(:any)/download/(:num)/(:num)'] = "board/download/$1/$2/$3";
  26. $route['board/(:any)/comment/(:num)'] = "board/comment/$1/$2";
  27. $route['board/(:any)/comment/(:num)/(:num)'] = "board/comment/$1/$2/$3";
  28. $route['board/(:any)/comment/(:num)/(:num)/(:num)'] = "board/comment/$1/$2/$3/$4";
  29. $route['board/(:any)/comment/(:num)/(:num)/delete'] = "board/comment_delete/$1/$2/$3";
  30. $route['board/(:any)/comment/(:num)/(:num)/blind'] = "board/comment_blind/$1/$2/$3";
  31. $route['rss/(:any)'] = "rss/index/$1";
  32. $route['sitemap\.xml'] = "sitemap";
  33. $route['sitemap_1.xml'] = "sitemap/pages";
  34. $route['sitemap_([a-zA-Z0-9_-]+)\.xml'] = "sitemap/board/$1";
  35. $route['content/(:any)'] = "content/index/$1";