<?php
defined('BASEPATH') OR exit('No direct script access allowed');

/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| Typically there is a one-to-one relationship between a URL string
| and its corresponding controller class/method. The segments in a
| URL normally follow this pattern:
|
|	example.com/class/method/id/
|
| In some instances, however, you may want to remap this relationship
| so that a different class/function is called than the one
| corresponding to the URL.
|
| Please see the user guide for complete details:
|
|	https://codeigniter.com/user_guide/general/routing.html
|
| -------------------------------------------------------------------------
| RESERVED ROUTES
| -------------------------------------------------------------------------
|
| There are three reserved routes:
|
|	$route['default_controller'] = 'welcome';
|
| This route indicates which controller class should be loaded if the
| URI contains no data. In the above example, the "welcome" class
| would be loaded.
|
|	$route['404_override'] = 'errors/page_missing';
|
| This route will tell the Router which controller/method to use if those
| provided in the URL cannot be matched to a valid route.
|
|	$route['translate_uri_dashes'] = FALSE;
|
| This is not exactly a route, but allows you to automatically route
| controller and method names that contain dashes. '-' isn't a valid
| class or method name character, so it requires translation.
| When you set this option to TRUE, it will replace ALL dashes in the
| controller and method URI segments.
|
| Examples:	my-controller/index	-> my_controller/index
|		my-controller/my-method	-> my_controller/my_method
*/

// https://www.url-encode-decode.com/ for convert chinese to url encode
$route['%E4%B8%BB%E9%A0%81']='mainweb';
$route['%E9%97%9C%E6%96%BC%E6%88%91%E5%80%91']='aboutus'; //關於我們
$route['%E7%99%82%E7%A8%8B%E6%9C%8D%E5%8B%99/(:any)/(:any)']='treatment'; //療程服務
$route['%E8%BC%95%E7%BE%8E%E5%AE%B9/(:any)/(:any)']='treatment';
//輕美容
$route['%E5%85%8D%E8%B2%BB%E8%AB%AE%E8%A9%A2']='advisory';//免費諮詢
$route['%E5%85%8D%E8%B2%BB%E8%AB%AE%E8%A9%A2/%E6%8F%90%E4%BA%A4']='advisory/formsubmit';//免費諮詢/提交

$route['%E7%B6%B2%E4%B8%8A%E5%95%86%E5%BA%97']='shop';//網上商店

$route['%E8%81%AF%E7%B5%A1%E6%88%91%E5%80%91']='contactus';//聯絡我們
$route['%E8%81%AF%E7%B5%A1%E6%88%91%E5%80%91/%E6%8F%90%E4%BA%A4']='contactus/formsubmit';//聯絡我們/提交
$route['%E7%BE%8E%E5%AE%B9%E5%B0%88%E6%AC%84']='bloglist'; //美容專欄
$route['%E7%BE%8E%E5%AE%B9%E5%B0%88%E6%AC%84/%E5%85%A7%E5%AE%B9']='blogdetails'; //美容專欄/內容
$route['%E7%BE%8E%E5%AE%B9%E5%B0%88%E6%AC%84/%E5%85%A7%E5%AE%B9/(:any)']='blogdetails'; //美容專欄/內容
$route['admin/(:any)']='admin/$1';
$route['default_controller'] = 'home';
$route['home/formsubmit']='home/formsubmit/$1';
$route['home/(:any)']='home/index/$1';
$route['%E4%B8%BB%E9%A0%81/(:any)']='home/index/$1';
$route['404_override'] = '';
$route['translate_uri_dashes'] = FALSE;
