Public folder with htaccess? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: Public folder with htaccess? (/showthread.php?tid=73802) |
Public folder with htaccess? - edica - 06-07-2019 Hello, How to direct to public folder? With htaccess? RE: Public folder with htaccess? - donpwinston - 06-07-2019 For apache you need to configure httpd.conf. ... # # DocumentRoot: The directory out of which you will serve your # documents. By default, all requests are taken from this directory, but # symbolic links and aliases may be used to point to other locations. # DocumentRoot "/path/to/public" <Directory "/path/to/public"> ... RE: Public folder with htaccess? - edica - 06-07-2019 There is also another line. In bold below. Does it need to be changed too? <Directory /home/user/web/domain.com/public_html/public> AllowOverride All SSLRequireSSL Options +Includes -Indexes +ExecCGI php_admin_value open_basedir /home/user/web/domain.com/public_html:/home/user/tmp php_admin_value upload_tmp_dir /home/user/tmp php_admin_value session.save_path /home/user/tmp </Directory> RE: Public folder with htaccess? - donpwinston - 06-07-2019 I don't know what the php_admin_value ... lines are. I don't have those. RE: Public folder with htaccess? - edica - 06-08-2019 I'm using Vesta panel. (vestacp.com) RE: Public folder with htaccess? - Pehesis - 06-28-2019 (06-07-2019, 12:39 PM)edica Wrote: Hello, I just posted this for a similar question hope this helps https://forum.codeigniter.com/thread-73929.html RE: Public folder with htaccess? - edica - 07-30-2019 For those using VestaCP with CentOS system: https://gist.github.com/edica/c89b4c50ee396bb7b380deca59d0bd8c |