![]() |
What causes this Page Not Found error? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6) +--- Forum: CodeIgniter 3.x (https://forum.codeigniter.com/forumdisplay.php?fid=17) +--- Thread: What causes this Page Not Found error? (/showthread.php?tid=78704) |
What causes this Page Not Found error? - Ajax30 - 02-28-2021 I am working on a basic blog application in Codeigniter 3.1.8 and Bootstrap 4. I have added a registration and login system to this application. I am current working on a password reset system. In the Changepasword controller, the `index` method takes the parameters `$email` and `$token`: PHP Code: public function index($email, $token) { In the routes file I have this line for the above controller: PHP Code: $route['changepasword/(:any)/(:any)'] = 'changepasword/$1/$2/'; The entire routes file: PHP Code: <?php I also added this to the `config.php` file: PHP Code: $config['permitted_uri_chars'] = 'a-z 0-9~%.:_()@=&\-!'; Yet, at the URL `http://ciblog.com/changepasword/[email protected]/f450469ac1970b06074acb7c430d431d` instead of the view being rendered, I get the error: 404 Page Not Found The page you requested was not found. If I use Code: md5($this->user_email) Code: this->user_email I get the URL: `http://ciblog.com/changepasword/ec9814883d7f7149bc15f1ed1f472da9/d7571dc4e25ea76278bee5eb45251f11, but still, the 404 Page Not Found error message. What am I doing wrong? RE: What causes this Page Not Found error? - iRedds - 02-28-2021 You forgot to specify the method changepasword/index/$1/$2 |