Welcome Guest, Not a member yet? Register   Sign In
Can't get rid of routing to "public"

(This post was last modified: 03-15-2023, 02:06 PM by Tbronson.)

New installation of CI 4.3.2. with Bonfire 2. Trying to make this change to the home page URL

mysite.com/public TO mysite.com

Changed the document root to the "public" folder. Removed "public" from baseURL in .env and app/Config/App.php, leaving trailing slash.

Now, mysite.com gives a "404 Can't find a route for 'get: public'" error, and the URL in the browser address bar changes to mysite.com/public.

I've cleared every cache I can think of. Tried it in multiple browsers, on my Windows laptop and Android phone. 

These URLs work fine:

mysite.com/index.php // home page
mysite.com/admin // goes to Bonfire
mysite.com/home // I created a route to the "Home::index" in Routes.php

Exactly the same baseURL changes remove "public" no problem in another account in the same environment.

Any ideas?

Messages In This Thread
Can't get rid of routing to "public" - by Tbronson - 03-15-2023, 10:12 AM

Theme © iAndrew 2016 - Forum software by © MyBB