#phpwala #codeigniter4 #installation #index #setup #php
To install and set up CodeIgniter 3 and remove the index.php from the URL, follow these steps:
Download CodeIgniter: Go to the CodeIgniter website and download the latest version of CodeIgniter 3.
Extract Files: Extract the downloaded ZIP file to your local server directory (e.g., htdocs for XAMPP or www for WAMP).
Set Up Database (if needed): If your application requires a database, create it and configure the database settings in application/config/database.php.
Configure Base URL: Open application/config/config.php and set your base URL. For example:
$config['base_url'] = 'http://localhost/your_project/';
Remove index.php from URLs: To remove index.php from your URLs, you need to enable mod_rewrite if you're using Apache. Open your .htaccess file (which should be in the root directory of your CodeIgniter installation) and add the following code: