Redirect issue |
I have the same issue. It looks like CI4 cannot be installed in a subdirectory without running in redirect problems. I also think there's a bug somewhere because not all web apps will have their own domain.
I have the following config on a Windows 10 PC for local development and testing, using XAMP and CodeIgniter 4.0.0 beta 4 installed in a directory named ci4: In Apache config : Code: Alias /ci4 "/xampp/htdocs/alain/ci4/public" In ci4/public/.htaccess: Code: RewriteBase /ci4/ In ci4/app/Config/App.php: PHP Code: public $baseURL = 'http://localhost:8080/ci4/'; If I use site_url('login') or anchor('login'), it generates a valid URL to http://localhost:8080/ci4/login, but if I use route_to('login') or redirect()->back()->withInput()->with('error', lang('Auth.badAttempt')) it redirect to http://localhost:8080/login and gives a 404 error. I got those errors while testing https://github.com/lonnieezell/myth-auth |
Messages In This Thread |
Redirect issue - by SirTom - 07-25-2019, 11:18 PM
RE: Redirect issue - by Digital_Wolf - 07-26-2019, 01:31 AM
RE: Redirect issue - by SirTom - 07-26-2019, 03:04 AM
RE: Redirect issue - by Digital_Wolf - 07-26-2019, 12:02 PM
RE: Redirect issue - by includebeer - 08-02-2019, 10:51 AM
RE: Redirect issue - by InsiteFX - 08-02-2019, 02:11 PM
RE: Redirect issue - by includebeer - 08-05-2019, 06:47 AM
RE: Redirect issue - by InsiteFX - 08-02-2019, 02:41 PM
RE: Redirect issue - by includebeer - 08-05-2019, 06:58 AM
|