[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>