Welcome Guest, Not a member yet? Register   Sign In
Remove Public from URL
#1

(This post was last modified: 06-09-2020, 09:45 AM by jreklund.)

Hi Guys, 

I am new to CI and just diving in. Love it so far. 
However, I have setup a new Mamp environment and setup a new host of http://codeigniter/ and when I try to run codeigniter, I can only view it at /codeigniter/public/ . I have no issue with this during development but need to clean up the URL. 

I have read that you need to move index.php and .htaccess out of public to the root. However, this seems like a security issue. 

Whats the proper way to get the correct base URL? Also note, I already updated the .env file and app.php file to match http://codeigniter/

Any light on this would be great!
Reply


Messages In This Thread
Remove Public from URL - by QUICKJEFF - 06-08-2020, 07:29 PM
RE: Remove Public from URL - by jreklund - 06-09-2020, 09:46 AM
RE: Remove Public from URL - by QUICKJEFF - 06-09-2020, 12:13 PM
RE: Remove Public from URL - by dave friend - 06-12-2020, 10:03 AM
RE: Remove Public from URL - by jreklund - 06-09-2020, 02:01 PM
RE: Remove Public from URL - by jinbatsu - 08-19-2020, 01:24 PM



Theme © iAndrew 2016 - Forum software by © MyBB