routing with encoded forward slash |
[eluser]enition[/eluser]
Can any one help me with a work around for this; I have an external url pointing to a module on my site, this url contains a code for a product part. Problem is that this part contains and encoded forward slash (/), I can get the rout working fine if the code was a proper unencoded slash using one of the following: Code: $route['product/(:any)/(:any)'] = "product/lookup/$1--$2"; this works fine with a regular forward slash and as you can see will have to convert the '- -' back to a / inside the module. But as soon as I use / it stops working and I get a 404.. here is an example url that I need to work: http://www.test.com/product/product/one but i need to pass the 'product/one' as a variable to product/lookup.. any pointers as to how I could achieve this better.. bearing in mind that not all products have the encoded forward slash. I am rubbish at expressions so go easy ![]() Thanks, Adam |
Messages In This Thread |
routing with encoded forward slash - by El Forum - 03-03-2009, 06:21 AM
routing with encoded forward slash - by El Forum - 03-03-2009, 06:29 AM
routing with encoded forward slash - by El Forum - 03-03-2009, 06:31 AM
routing with encoded forward slash - by El Forum - 03-03-2009, 06:39 AM
routing with encoded forward slash - by El Forum - 03-03-2009, 06:47 AM
routing with encoded forward slash - by El Forum - 03-03-2009, 06:49 AM
routing with encoded forward slash - by El Forum - 03-03-2009, 10:39 AM
routing with encoded forward slash - by El Forum - 03-03-2009, 11:08 AM
routing with encoded forward slash - by El Forum - 03-03-2009, 02:51 PM
routing with encoded forward slash - by El Forum - 03-03-2009, 02:56 PM
routing with encoded forward slash - by El Forum - 03-03-2009, 03:03 PM
|