we need to add a small .htaccess script in the root folder of the codeignitor
.htaccess
RewriteEngine on
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
if you want to remove the codeignitor contoller from the url the we need to go to applicatio folder then the config folder route.php here add $route['about']='Front/about';
here front is the controller and the about is the function name
htaccess remove the usage of index.php and route remove the full usage of front/about
now we can access the page by about/inde page