Current I have URL www.site.com/mauritius/className/function/id . I have managed to remove index.php using .htaccess.
Now I want to remove function segment from URL. I want to make above URL www.site.com/mauritius/className/id . Just don't want 'function' in URL for only one function.
set your route in config/routes.php
$route['alias'] = 'controller/method';
or rewrite url using .htaccess
i am not check this but you can try like
RewriteRule ^controller/([a-z0-9A-Z]+)/?$ controller/function/$1 [L,QSA]
For more :- http://www.addedbytes.com/articles/for-beginners/url-rewriting-for-beginners/
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.