Welcome Guest, Not a member yet? Register   Sign In
Problem when upload to shared hosting
#1

Hi, All.
i have a problem, my CI4 project run perfectly in localhost but when i upload to shared hosting (cpanel) (because this my 1st time upload ci to live server), it cannot open my site with feature routeadd like this.

in my Router.php

Code:
$routes->add('/', 'Auth::index');
$routes->add('admin', 'Admin::index');

in my controller
Code:
if ($user['role_id'] == 1) {
                        $this->response->redirect(base_url('admin'));
                    }

my screenshot

[Image: 404.png]

please share me a references or keyword to fix this Smile
Reply
#2

sorry, solved with change route add with route get
Reply
#3

(06-05-2020, 02:13 AM)sandywicaksono Wrote: sorry, solved with change route add with route get


I'm getting same issue, Can you please explain further more, how you solve this issue.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB