500 Internal Server Error on Web Server for subpages - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: 500 Internal Server Error on Web Server for subpages (/showthread.php?tid=76235) |
500 Internal Server Error on Web Server for subpages - reedo - 04-23-2020 I've just uploaded my site to Ionos, but every page that isn't the home page (e.g. www.mywebsite.com/page) gives a 500 Internal Server Error. I am using the ddefault .htaccess that came with CodeIgniter 4. If I go to www.mywebsite.com/index.php/page, the page loads fine. Has anybody else had this issue, or could help? I've been stuck for hours RE: 500 Internal Server Error on Web Server for subpages - jreklund - 04-23-2020 Try to edit your /public/.htaccess and add a question mark. Some servers don't do rewrite without it. Code: RewriteRule ^(.*)$ index.php?/$1 [L] or Code: RewriteRule ^(.*)$ index.php?/$1 [L,QSA] RE: 500 Internal Server Error on Web Server for subpages - reedo - 04-23-2020 (04-23-2020, 01:51 PM)jreklund Wrote: Try to edit your /public/.htaccess and add a question mark. Some servers don't do rewrite without it. Thank you jreklund!!! By itself, adding the question mark didn't work, but I tried enabling the RewriteBase / line and hey presto! IT WORKED! Thanks a million. |