Unknown How to Remove Index.php in Codeigniter using htaccess - Codeigniter tutorial for beginners step by step in hindi | My Project HD
X

How to Remove Index.php in Codeigniter using htaccess - Codeigniter tutorial for beginners step by step in hindi

How to Remove Index.php in Codeigniter using htaccess - Codeigniter tutorial for beginners step by step in hindi





In This tutorial we will discuss about . How to remove index.php in codeigniter using htaccess .

How to remove index.php

1. Create new .htaccess file on your codeigniter project root folder
2. write this code on your .htaccess file 

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

3.Open config.php file

Change :

$config['index_page'] = "index.php";

To

$config['index_page'] = '';

After use this step . index.php removed on your project url

More Tutorials

Web Technology Tutorials in Hindi

Web Technology Tutorials in Hindi

Read More
Diploma engineering tutorial for polytechnic collage

Diploma Engineering Tutorial

Read More
Final Year Projects for Computer Science with Source Code

Final Year Projects for Computer Science with Source Code

Read More

Related Tutorials