[eluser]gh0st[/eluser]
Hi.
Thanks for your reply.
The current situation is:
Quote:There is a legacy/PHP4 system, which has a htaccess authentication on a /cms/ folder.
As the website is pretty small, I've been able to rewrite pretty much everything in CodeIgniter as I was having major problems trying to integrate/re-engineer the exisiting legacy system to work in CodeIngiter.
As I've rewritten the site, I've come to the problem where I still want to use the htaccess authentication on the /cms/ folder, which of course doesn't really exist because they are all using the index.php as a front controller.
I do no want two systems (one old and one new) and I don't want 2 instances of CodeIgniter. The only two solutions left are:
* Put some kind of authentication on the /cms/ controller and all the controller/views that sit within it
* Move the entire codeigniter system folder out of root.
But the second solution does not really solve the problem because users can still get to the /cms/ controller.
With regards to your questions.
1. Do I mean re-engineering existing legacy CMS to work with CI framework
-> No, I've re-built the whole CMS in the CI framework as the website was quite small.
2. Do I mean just cp -a?
-> I don't know what cp -a means
3. Do I intend to migrate it, and is it possible just to leave it outside of CI in a seperate system.
-> I don't intend to use the existing system at all, I'm moving totally from the old system to a new CI flavor.
4. Can I swing data/users to the new CI based CMS
-> I've thought about this, but in practice I do not know if this works.
Let's assume you create a folder called /cms/, inside this there is the HTAccess authentication layer.
But at the same time there is a /cms/ controller within the CI framework.
Which takes presidence?
Let's assume further that I rename the /cms/ controller to something else, ie: /admin/
The user can still get to /admin/ by physically typing in the controller.
Other users have pointed out that it is not possible to put a HTaccess authentication layer on a controller, but if there is a way, and you're aware of it, please let me know.
Thanks.