routes.php 428 B

1234567891011121314
  1. <?php
  2. defined('BASEPATH') OR exit('No direct script access allowed');
  3. $route['default_controller'] = 'index';
  4. $route['404_override'] = '';
  5. $route['translate_uri_dashes'] = FALSE;
  6. $route['m3u8/([a-zA-Z0-9]+)/(.+)'] = 'm3u8/$1/$2';
  7. $route['m3u8/(.+)'] = 'm3u8/index/$1';
  8. $route['play/(\d+)'] = 'play/index/$1';
  9. $route['share/([a-zA-Z0-9]+)'] = 'play/index/$1';
  10. if(SELF == 'index.php'){
  11. $route['default_controller'] = 'home';
  12. }