Welcome Guest, Not a member yet? Register   Sign In
How to leaves old link - routing?
#12

[eluser]n0xie[/eluser]
I looked into it a bit and it seems that mod_rewrite does not 'see' the querystring. This work-a-round works:
Code:
// .htaccess
    RewriteRule ^article\.php?(.*)$ index.php/article/index [L]

// config.php
$config['uri_protocol']    = "PATH_INFO";
$config['enable_query_strings'] = TRUE;

// controllers/article.php
    function index()
    {
        echo $this->input->get('id');
    }

Hope that helps.


Messages In This Thread
How to leaves old link - routing? - by El Forum - 02-13-2010, 03:46 PM
How to leaves old link - routing? - by El Forum - 02-13-2010, 07:28 PM
How to leaves old link - routing? - by El Forum - 02-14-2010, 12:34 AM
How to leaves old link - routing? - by El Forum - 02-14-2010, 07:19 AM
How to leaves old link - routing? - by El Forum - 02-18-2010, 06:25 PM
How to leaves old link - routing? - by El Forum - 02-19-2010, 04:41 AM
How to leaves old link - routing? - by El Forum - 02-19-2010, 12:16 PM
How to leaves old link - routing? - by El Forum - 02-20-2010, 11:52 AM
How to leaves old link - routing? - by El Forum - 02-20-2010, 07:00 PM
How to leaves old link - routing? - by El Forum - 02-22-2010, 04:33 AM
How to leaves old link - routing? - by El Forum - 02-27-2010, 12:02 PM
How to leaves old link - routing? - by El Forum - 03-01-2010, 05:10 AM
How to leaves old link - routing? - by El Forum - 03-04-2010, 07:49 AM
How to leaves old link - routing? - by El Forum - 03-04-2010, 08:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB