How To Remove Index Php In Codeigniter

[Solved] How To Remove Index Php In Codeigniter | Php Frameworks Codeigniter - Code Explorer | yomemimo.com
Question : how to remove index.php in codeigniter

Answered by : samy

<?php
#By default, the index.php file will be included in your URLs:
# Create a .htaccess file in your root folder and paste the below code
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
?>

Source : | Last Update : Mon, 22 Jun 20

Question : how to remove index.php in codeigniter

Answered by : harendra

1. Change $config['index_page'] = "index.php" to $config['index_page'] = "" in config.php
2. Change $config['uri_protocol'] ="AUTO" to $config['uri_protocol'] = "REQUEST_URI" in config.php
3. Create .htaccess file in root dir of your application and paste the following code	RewriteEngine on	RewriteCond $1 !^(index\.php|resources|robots\.txt)	RewriteCond %{REQUEST_FILENAME} !-f	RewriteCond %{REQUEST_FILENAME} !-d	RewriteRule ^(.*)$ index.php/$1 [L,QSA] 

Source : | Last Update : Wed, 17 Feb 21

Question : remove index.php in codeigniter

Answered by : dull-dolphin-vhaxom4xsiop

RewriteEngine on
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA] 

Source : https://stackoverflow.com/questions/19183311/codeigniter-removing-index-php-from-url | Last Update : Sun, 28 Jun 20

Question : removing index.php in codeigniter

Answered by : yusuffazeri

//find the below code
$config['index_page'] = "index.php"
//replace with the below code
$config['index_page'] = ""

Source : https://stackoverflow.com/questions/19183311/codeigniter-removing-index-php-from-url | Last Update : Wed, 21 Oct 20

Question : nginx codeigniter remove index.php

Answered by : yash-dharia

# Only for Nginx server
location / { try_files $uri $uri/ /index.php$is_args$args;
}

Source : https://codeigniter.com/user_guide/general/urls.html#nginx | Last Update : Tue, 11 May 21

Answers related to how to remove index php in codeigniter

Code Explorer Popular Question For Php Frameworks Codeigniter