Welcome Guest, Not a member yet? Register   Sign In
Problem with URLs
#1

[eluser]bondjp[/eluser]
I have this problemn and just don't know how to solve it.
When i put this url:
Code:
http://mysite.com/memb/postback/postback.php?sid=10&name=myname
[
The postback works but if i try to go to other parts of the site i redirects me to the homepage.

If i put this like it should be :
Code:
http://mysite.com/memb/postback.php?sid=10&name=myname
I get a 404 error.
Putting PATH_AUTO it sends me to the homepage.
How can i make this work?

Library:
Code:
class MY_Input extends CI_Input
{
    function MY_Input()
    {
        parent::CI_Input();
        $pos = strrpos($_SERVER['REQUEST_URI'], '?');
        $qry = is_int($pos) ? substr($_SERVER['REQUEST_URI'], ++$pos) : '';
        parse_str($qry, $_GET);
    }
    
}

Config:
Code:
$config['uri_protocol']    = "REQUEST_URI";


Controller "memb":
Code:
function postback(){

                                
        $subid=$this->input->get('sid',TRUE);
        $survey=$this->input->get('name',TRUE);
....................................
}

htaccess
Code:
<IfModule mod_rewrite.c>

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} ^sys.*
RewriteCond $1 !^(index\.php|images|js|captcha|robots\.txt|css)
RewriteRule ^(.*)$ /index.php/$1 [L]


RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>

<IfModule !mod_rewrite.c>
    # If we don't have mod_rewrite installed, all 404's
    # can be sent to index.php, and everything works as normal.  
    ErrorDocument 404 /index.php
</IfModule>


Messages In This Thread
Problem with URLs - by El Forum - 07-24-2010, 07:08 PM
Problem with URLs - by El Forum - 07-24-2010, 07:24 PM
Problem with URLs - by El Forum - 07-24-2010, 07:26 PM
Problem with URLs - by El Forum - 07-24-2010, 07:28 PM
Problem with URLs - by El Forum - 07-24-2010, 07:28 PM
Problem with URLs - by El Forum - 07-24-2010, 07:30 PM
Problem with URLs - by El Forum - 07-24-2010, 07:35 PM
Problem with URLs - by El Forum - 07-24-2010, 07:45 PM
Problem with URLs - by El Forum - 07-24-2010, 07:58 PM
Problem with URLs - by El Forum - 07-24-2010, 08:24 PM
Problem with URLs - by El Forum - 07-24-2010, 08:46 PM
Problem with URLs - by El Forum - 07-24-2010, 08:49 PM
Problem with URLs - by El Forum - 07-24-2010, 09:11 PM



Theme © iAndrew 2016 - Forum software by © MyBB