Resham Deshpande Resham Deshpande - 1 month ago 6
PHP Question

Change url using htaccess

Answer

Try this code inside root .htaccess

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

You can change the route url in Codeigniter. Application->config->routes.php

$route['controller']='folder1/index.php/folder2/controller';