CodeIgniter Forums
htaccess and routing - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forum-5.html)
+--- Forum: General Help (https://forum.codeigniter.com/forum-24.html)
+--- Thread: htaccess and routing (/thread-74342.html)



htaccess and routing - mjamilasfihani - 09-12-2019

Sorry I want to ask, 

This is my url http://example.com/index.php/folder/controller/function/1/2/3

And I want to set it as http://example.com/controller/function/1/2/3

I read the docs and the htaccess is
just remove the index, and I have searched how to solve it but
I still dont know, please help me. Thanks

*note : I have created the route


RE: htaccess and routing - dave friend - 09-12-2019

Please show the route.


RE: htaccess and routing - mjamilasfihani - 09-12-2019

(09-12-2019, 04:08 PM)dave friend Wrote: Please show the route.

Here my route ->
$route['folder'] = ['folder/controller'];

And I created 'folder' in application/controller then I put 'controller' in 'folder'


RE: htaccess and routing - mjamilasfihani - 09-15-2019

Please anybody?


RE: htaccess and routing - ciadmin - 09-15-2019

It looks like you want to remove the index.php ... https://codeigniter.com/user_guide/general/urls.html#removing-the-index-php-file