Web Development || Node JS, Angular, PHP
Thursday, January 9, 2020
Codeigniter URL Routing, Suffix & Enable Query String
We can use two types of wildcards, namely:
:num – Segment containing only numbers will be matched.
:any – Segment containing only characters will be matched.
$route['(blog/:num)'] = 'tutorial/java/$1';
$route['(blog/:any)'] = 'tutorial/java';
$route['blog/([a-zA-Z0-9]+)'] = 'tutorial/java';