![]() |
.htaccess makes 403 - 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: .htaccess makes 403 (/showthread.php?tid=89134) |
.htaccess makes 403 - okiewardoyo - 01-14-2024 Dear all. I'm new to Codeigniter, and unfortunately i'm new in .htaccess. I have a sample CI script that i want to learn. Everytime i open this CI script always get 403 forbidden, buat when i delete the .htaccess it loads normally. I'm sure there must be a problem with .htaccess. ---- I install this script in an addon domain that point to folder /public_html/newdomain.com Yes, i installed it in subfolder, not in the main folder. ![]() and here is my .htaccess Code: # Disable directory browsing I'm sure the error is in this .htaccess, unfortunately i'm begiiner in apache directives. Hopefully somebody help me. Thanks. This scripts works perfect if i install it in main public_html. But i get 403 when i installed it in subfolder above. Thanks. RE: .htaccess makes 403 - okiewardoyo - 01-18-2024 commeting this below line make it works. Code: AddHandler application/x-httpd-ea-php74___lsphp .php .php7 .phtml solve the problem |