Welcome Guest, Not a member yet? Register   Sign In
Get Original URL after being rewrite by URI Routing
#1

[eluser]chandrajatnika[/eluser]
Is that possible for get an original URL after being rewrite by uri routing?
this is my uri routing code (on application/config/routes.php) :
Code:
$route['(sell|buy)/(:num)/(:any).html'] = 'adlist/index/?adType=$1&adCategory;=$2';
I use URI routing only for SEO purpose, and I don't want to change a lot of program logic by doing this.
If I receive an original URL, nothing will happen but when I call uri_string() function, I receive 'fake' URL 'sell/1/Car.html'.
Can I get an original URL like 'adlist/index/?adType=sell&adCategory=1' ??

Thanks for your answers, It will help me a lot.


Messages In This Thread
Get Original URL after being rewrite by URI Routing - by El Forum - 01-11-2010, 05:37 AM
Get Original URL after being rewrite by URI Routing - by El Forum - 01-11-2010, 06:47 AM
Get Original URL after being rewrite by URI Routing - by El Forum - 01-11-2010, 10:30 PM
Get Original URL after being rewrite by URI Routing - by El Forum - 01-12-2010, 06:18 AM



Theme © iAndrew 2016 - Forum software by © MyBB