What causes this Page Not Found error? |
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? |
Messages In This Thread |
What causes this Page Not Found error? - by Ajax30 - 02-28-2021, 01:48 AM
RE: What causes this Page Not Found error? - by iRedds - 02-28-2021, 07:04 AM
|