Getting HTTP 404 when redirecting but reloading works. |
Using CodeIgniter 4.5.3, after doing user identification (you know, creating a session variable and updating the database to register the login) I do a redirection to the index page this way:
PHP Code: return redirect ()->to ('', 307); Accessing the index page directly (by putting the URL) doesn't fail. Doing other redirections (for example, when the index page detects the user isn't identified it redirects to the login page using same code) works without any problem. Anybody knows any reason for this behavior? |
Messages In This Thread |
Getting HTTP 404 when redirecting but reloading works. - by Ñuño Martínez - 07-15-2024, 10:46 AM
RE: Getting HTTP 404 when redirecting but reloading works. - by ozornick - 07-15-2024, 10:56 AM
RE: Getting HTTP 404 when redirecting but reloading works. - by kenjis - 07-15-2024, 03:26 PM
RE: Getting HTTP 404 when redirecting but reloading works. - by kenjis - 07-15-2024, 03:26 PM
RE: Getting HTTP 404 when redirecting but reloading works. - by Ñuño Martínez - 07-16-2024, 10:49 AM
RE: Getting HTTP 404 when redirecting but reloading works. - by kenjis - 07-16-2024, 02:14 PM
RE: Getting HTTP 404 when redirecting but reloading works. - by kenjis - 07-16-2024, 02:16 PM
RE: Getting HTTP 404 when redirecting but reloading works. - by Ñuño Martínez - 08-07-2024, 03:16 AM
RE: Getting HTTP 404 when redirecting but reloading works. - by kenjis - 08-07-2024, 03:51 PM
RE: Getting HTTP 404 when redirecting but reloading works. - by kenjis - 08-07-2024, 04:36 PM
|