Welcome Guest, Not a member yet? Register   Sign In
Controller Subfolder Structure - Prevent Root Access
#1

[eluser]haydenp[/eluser]
Hiya, possibly a silly question

I'm using a controller subfolder structure as follows:

controllers/admin/login.php

I have the default welcome.php controller sitting in the root of the controllers folder as follows:

controllers/welcome.php

I have the welcome.php controller set as my default_controller in the routes file.

The problem I have is ... if I access: http:/www.mywebsite.com/index.php/admin/ I get the welcome controller displaying the welcome page.

- Why is this ... I would have though a 404 would display as no controller is being specified?
- How can I prevent this and rather show a 404?

Many thanks


Messages In This Thread
Controller Subfolder Structure - Prevent Root Access - by El Forum - 03-13-2009, 01:17 PM
Controller Subfolder Structure - Prevent Root Access - by El Forum - 03-13-2009, 02:57 PM
Controller Subfolder Structure - Prevent Root Access - by El Forum - 03-13-2009, 08:38 PM
Controller Subfolder Structure - Prevent Root Access - by El Forum - 03-14-2009, 02:17 AM
Controller Subfolder Structure - Prevent Root Access - by El Forum - 03-15-2009, 02:50 PM
Controller Subfolder Structure - Prevent Root Access - by El Forum - 03-15-2009, 04:02 PM
Controller Subfolder Structure - Prevent Root Access - by El Forum - 03-16-2009, 04:05 AM



Theme © iAndrew 2016 - Forum software by © MyBB