Welcome Guest, Not a member yet? Register   Sign In
Masking either class/method in URI for shorter, more SEF URLs
#4

[eluser]coldautumn[/eluser]
Kindly need a more modified solution

You have given a way for SE url's

Quote:
In routes.php:

$route['category/(\d+)'] = 'category/details/$1';

But what if , there are two variables i-e $1 & $2 and the required url should only have $2 in preceding.

For example : Got a url " site-name/directory/list/$1/$2 "
should be : "site-name/list/$2"

I have added in route.php

$route['list/$2']="directory/list/$1/$2"; nothing effected.
and only adding routing variable like above ,will generate the result or do I have to add same rule to htaccess file?


Thank you.


Messages In This Thread
Masking either class/method in URI for shorter, more SEF URLs - by El Forum - 08-30-2008, 12:45 AM



Theme © iAndrew 2016 - Forum software by © MyBB