2.14.6.3. Change Application Address in CodeIgniter
Attention!
This article describes only the standard parameters of the CodeIgniter 4 framework.
In CodeIgniter, the site address is specified in the configuration file or in the file .env
, which is used to specify the application environment:
- In case of using a file
.env
you need to change the line, first deleting the hash symbol at the beginning of the lines#
:app.baseURL = 'адрес_site'
- In case of using a file
app/Config/App.php
you need to change the line:public $baseURL = 'http://address_site/';
You can make changes to files using filemanager or any FTPclient.