Welcome Guest, Not a member yet? Register   Sign In
Multiple instances of CI4 and removal of public/index.php/ from url
#3

(This post was last modified: 03-18-2020, 03:56 AM by mjamilasfihani.)

You can change the root directory from your server.
Example : before www/dirname/ change to www/dirname/public/

Or you can place your CI asset in another directory and put the content of public in your root then change the config of index.php

Example : www/user/public_html/index.php <- this is public dir
Then I point the codeigniter to www/user/_codeigniter/

(03-17-2020, 05:21 PM)owino Wrote: I am working on a project that will solve multiple problems but a user may potentially use more than one of these solutions.

So I have an instance of CI4 handling users (logins, passwords etc) with its own database.

I have another instance of CI4 implementing a solution to the first problem with its own database.

I will soon be using another instance CI4 to solve another problem that I have already identified.

But no user should use any of these solutions without going through the CI4 instance that authenticates users among other things basic

.
.
.

When I was using CI3, there was no problem. The trouble is that CI4 has introduced the 'public' directory which is now my headache.

Whenever an instance X of CI4 is the one active I now have my URL as http://localhost/InstanceXofCI4/public/view. The 'index.php' is out of the way but I am stuck with 'public' directory.

Is it possible to hide the 'public' directory without changing the default directory structure?

If you use shared hosting, or cant point the root directory. You can choose my 2nd option. If you have root access you just need to change the root directory
Reply


Messages In This Thread
RE: Multiple instances of CI4 and removal of public/index.php/ from url - by mjamilasfihani - 03-18-2020, 03:54 AM



Theme © iAndrew 2016 - Forum software by © MyBB