Welcome Guest, Not a member yet? Register   Sign In
Route without some letters
#1

[eluser]someone Smile[/eluser]
Hello!
I'm working on news project and I would like to have clean URLs. I've created table in database for URLs and now I've added routes. This is route which I have now:
Code:
$route['news/(:any)'] = "news/a/$1";
news is controller
a is article which is function in controller

I would like to route all addresses without some letters - c (category), t (tag), ... so if there will be URL like news/c/music, to go next on function and ignore route.

Is this possible?

Thanks! :-)
#2

[eluser]someone Smile[/eluser]
// Anyone?

Solved!

Thanks to all! :-)




Theme © iAndrew 2016 - Forum software by © MyBB