B
B
Boris Belov2014-07-09 14:36:27
Search Engine Optimization
Boris Belov, 2014-07-09 14:36:27

Kohana - how to solve the problem?

Good afternoon, experts, I ask you to help in one matter. There is a task for a close client to change one, but very important thing.
There is an online store and its link to the product is written like this mysite.com/item/177 (wrong)
and there is a second site and its link is written like this mysite.com/item/mitsuwa-rose-fragrance-bubble-soap -600ml (correctly)
So it is necessary that the first online store has a link to the product in the address bar that is complete to the product, as in the second example. I have never encountered Kohana, but I understand that this is a matter of 5 minutes. I know that I need to correct something in some file, but I don’t understand.
Your help is very much needed. If it's not difficult, just write where you need to go to change this parameter.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan Somov, 2014-07-09
@iborisbelov

you need to deal with 2 things
- with routes
- with a controller that gives uri
, depending on how the code is written, it can be 5 minutes, maybe a day)
routes can be in bootstrap, can be taken out separately, according to the code it looks something like this
Route ::set('routename', 'blblblblba')
->defaults(array(
'controller' => 'bpage',
'action' => 'step1',
));
you can search for them with a full-text search, for example, using the phrase Route:: set

O
Optimus, 2014-07-09
Pyan @marrk2

As an optimizer, I can tell you that the idea is not worth it.
First, all pages will be thrown out of the index and 404 will be thrown out, if only 301 redirects are made from each to each, but then it is necessary that the page works both at the old and at the new address.
Further, when your new pages enter the index, you will still be disappointed because nothing will change))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question