Welcome Guest, Not a member yet? Register   Sign In
URI Routing with Regular Expressions: How can I make it work???
#1

[eluser]Unknown[/eluser]
Hi,
I have a problem with two kinds of links, one that goes to the article (1539 is it's specific ID):

Code:
/Article_name-1539.html

and one that goes to the category (47 is it's specific ID):
Code:
/MainCat/SubCat-47/

I want to route them, I tryed these following codes without any result exept some 404 errors

Code:
$route['-(:num).html'] = "ArticleClass/function/$1/";

$route['-(:num)/'] = "CategoryClass/function/$1/";

how can I do this? Thanks in advance.

#2

[eluser]Unknown[/eluser]
no one have a solution for that?




Theme © iAndrew 2016 - Forum software by © MyBB