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

[eluser]devastator[/eluser]
.......... It's not working i get the same error in error log again again again

Code:
ERROR - 2010-02-27 07:47:34 --> 404 Page Not Found --> id
#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.
#13

[eluser]devastator[/eluser]
I want to say you one BIG THANK YOU Smile This works fine. Smile
#14

[eluser]n0xie[/eluser]
[quote author="Lubo" date="1267732187"]I want to say you one BIG THANK YOU Smile This works fine. Smile[/quote]
Happy I could help.




Theme © iAndrew 2016 - Forum software by © MyBB