Reputation: 13
In codeigniter I am routing my url www.xxxxxx.com/jewels
to www.xxxxxx.com/luxury-jewels
by using the following code in routes.php
,
$route['(.*)luxury-jewels'] = "jewels";
the above code working well for english language when i am my other language its adding new parameter "ru"
in the URL For Example:
www.xxxxxx.com/ru/luxury-jewels
when doing this i am getting 404 Page Not Found error.
I tried different routing combinations its not working.
Upvotes: 0
Views: 266
Reputation: 96
You need to add another route for it.
e.g
$route['ru/luxury-jewels'] = "jewels";
or for many languages
$route['(:any)/luxury-jewels'] = "jewels";
Upvotes: 0
Reputation: 161
Intend of using
$route['(.*)luxury-jewels'] = "jewels";
use
$route['(:any)/luxury-jewels'] = "jewels";
Tested and works for me.
Upvotes: 1