[英]CodeIgniter shows 404 not found on the server but working fine in localhost (xampp)
我有我的 config.php
$config['base_url'] = 'http://127.0.0.1/myblog/';
其他為默認。
我有兩個控制器Main.php和Owner_admin_nepal.php
其他事情作為默認。
但是每次我將文件上傳到服務器時,它總是顯示 404 not found。
問題不夠清楚,看不出問題。 但我的猜測是 mod_rewrite。 如果在服務器上打開,不要忘記編輯您的 .htaccess - 使用 .htaccess 文件刪除 CodeIgniter 中的 index.php
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.