CodeIgniter Forums
Valid URL :: But getting 404 .... - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Valid URL :: But getting 404 .... (/showthread.php?tid=26384)



Valid URL :: But getting 404 .... - El Forum - 01-12-2010

[eluser]Unknown[/eluser]
Hi,

I am trying to use google authentication to use Picasa web album. Once authentication is done, google will redirect you to a predefined URL (this is configurable). This is my URL

http://<SERVER IP>/picasa/after_auth/

While redirecting google adds one authentication token information, which we can use to query user data from google.

http://<SERVER IP>/picasa/after_auth/?token=<SOME TOKEN>

Now I have a controller picasa and after_auth is a function defined in the controller, but the URL is showing 404 error.

If I remove "?" from the URL its working fine.

My controller code

&lt;?php

class Picasa extends Controller {

function Picasa() {
parent::Controller();
}

function after_auth($token) {
echo "Success : ".$token;
}


}

Please Help


Valid URL :: But getting 404 .... - El Forum - 01-12-2010

[eluser]Sbioko[/eluser]
Because you shouldn't use "pretty" urls. Use native urls.


Valid URL :: But getting 404 .... - El Forum - 01-12-2010

[eluser]Sbioko[/eluser]
You should allow $_GET in CI.


Valid URL :: But getting 404 .... - El Forum - 01-12-2010

[eluser]Dyllon[/eluser]
Use this method to use both URI segments and query strings