Wildcards:
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';
Regular Expression
$route['blog/([a-zA-Z0-9]+)'] = 'tutorial/java';
No comments:
Post a Comment