CodeIgniter 404 Page Not Found, but why?

前端 未结 11 2353
Happy的楠姐
Happy的楠姐 2020-12-11 14:48

I am using CodeIgniter for two applications (a public and an admin app). The important elements of the document structure are:

/admin
/admin/.htaccess
/admin         


        
11条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-11 15:35

    Your folder/file structure seems a little odd to me. I can't quite figure out how you've got this laid out.

    Hello I am using CodeIgniter for two applications (a public and an admin app).

    This sounds to me like you've got two separate CI installations. If this is the case, I'd recommend against it. Why not just handle all admin stuff in an admin controller? If you do want two separate CI installations, make sure they are definitely distinct entities and that the two aren't conflicting with one another. This line:

    $system_folder = "../system";
    $application_folder = "../application/admin"; (this line exists of course twice)
    

    And the place you said this exists (/admin/index.php...or did you mean /admin/application/config?) has me scratching my head. You have admin/application/admin and a system folder at the top level?

提交回复
热议问题