Welcome Guest, Not a member yet? Register   Sign In
Remove segment from url in multi language site
#1

Hi! i have this code...

View:
PHP Code:
<a href="<?php echo base_url('it/article/'.$a['slug']);?>">Blog Title</a


Routes:
PHP Code:
$routes->add('(:any)/it/article''It/Main::article/$1');
$routes->get('{locale}/article/(:any)''It/Main::article'); 

..and this link: www.mysite.com/it/article/title

I would like remove the word article form the link. My new link should be: www.mysite.com/it/slug

Thanks for the support.
Reply


Messages In This Thread
Remove segment from url in multi language site - by eleumas - 02-19-2021, 12:00 PM



Theme © iAndrew 2016 - Forum software by © MyBB