Mình bị lỗi file .htaccess bỏ index.php, chạy bên dưới localhost thì bình thường nhưng khi up lên host toàn chuyển về trang error.
đây là file htaccess của mình:
RewriteEngine on
RewriteCond $1 !^(index\.php|public|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [L]
các bác xem giúp giùm sai chổ nào ?