How to not add end slash to list urls in codeigniter

0

Greetings,

I'm trying to find a way to not add end slashes in urls to the listing, as in the case:

virtualhost/blog/ -> virtualhost/blog

I tried setting up a route for the index of my controller:

$route['blog'] = 'blog/index';

But I did not succeed. I also tried using mod_rewriter, I did not succeed either.

    
asked by anonymous 27.09.2018 / 13:50

0 answers