There is a website written procedurally and with outdated approaches in PHP. Now I want to completely rewrite it on the Laravel framework. Who was doing the same? Are there many pitfalls?

Another question is how to make the right redirect in htaccess for search engines and speedy correct re-indexing. Old way:

 http://site.com/items.php?item=356084821 

New will be something like this:

 http://site.com/item/356084821<br> 

Closed due to the fact that the question is too general a participant Nicolas Chabanovsky 24 Apr '16 at 10:51 .

Please correct the question so that it describes the specific problem with sufficient detail to determine the appropriate answer. Do not ask a few questions at once. See “How to ask a good question?” For clarification. If the question can be reformulated according to the rules set out in the certificate , edit it .

  • Is the code covered in tests? - cheops
  • one
    In general, changing URLs on a site can have a very negative impact on search results. Therefore, if the site is commercial and brings a stable income, then it is worth considering how to save all the addresses. For example, on Yii2 you can use the standard GET parameters along with the established routing. In any case, choose the path that will bring greater effect with fewer losses. - Daniel-664

1 answer 1

Many programmers are afraid of everything new, because mastering a new technology takes time, better old, but familiar, than new, unknown and not always the best. We must always evolve and go forward. On native PHP you will not go far.

Framework - a set of ready-made functions, procedures, and much more, created in order to save the programmer from the routine work. Almost all frameworks are built using OOP principles and it was nice to understand these three letters before developing them. Using frameworks is a good step that allows you to focus on writing the business logic of your application, instead of selling bicycles.

I advise you to look towards such frameworks as Yii, Symfony, Laravel. You have chosen Laravel. Try to rewrite after writing on Laravel on Yii, Symfony. And immediately understand the difference. The main thing to know the language itself is good, but technology always changes and requires attention to itself. By the way, symfony has very good routing.


Successful coding ...