![]() |
Installing as a subdomain using cPanel and Softaculous - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Installation & Setup (https://forum.codeigniter.com/forumdisplay.php?fid=9) +--- Thread: Installing as a subdomain using cPanel and Softaculous (/showthread.php?tid=80856) |
Installing as a subdomain using cPanel and Softaculous - malcolmr - 12-25-2021 After installing CI4 with Myth/Auth on a shared server using cPanel and Softaculous, I get a 404 when I enter a username/password and press Login. To make it as simple as possible, my test application just has:
https://mindstg.xxxxxxx.xxx.au/
Pressing the Login button on https://mindstg.xxxxxxx.xxx.au/public/login
Change (hack) the <form> tag in Myth/Auth Login form (using the HTML editor in the browser)
Folder structure: public/index.php (unchanged from default) PHP Code: <?php .htaccess (as created by the Softaculous CodeIgniter installer) Code: # To prevent access to .env and other files Code: #-------------------------------------------------------------------- PHP Code: <?php vendor/myth/auth/src/Config/Routes.php (unchanged from standard) PHP Code: <?php What I need:
For bonus points (ie: more profuse thanks ![]()
Malcolm RE: Installing as a subdomain using cPanel and Softaculous - malcolmr - 12-27-2021 Ok. After a LOT of trial and error, I've found a combination that does what I want. I'm posting my solution here, not because I think that it's a wonderful solution (I don't really understand how/why it works), but in the hope that it might be useful to someone else and/or someone can explain it to me. Cheers Malcolm .htaccess (replaced RedirectMatch with RewriteCond/RewriteRule): Code: <IfModule mod_alias.c> .env (removed '/public' from app.baseURL): Code: #-------------------------------------------------------------------- RE: Installing as a subdomain using cPanel and Softaculous - adazinh - 12-28-2021 Awesome, I'm having this problem. thank you |