I need the simplest php rewrite without any framework if possible

Job ID: 31094789

Budget: $30 – $250 USD

Hello i do need the simplest and easiest way without using any framework to do rewrite and redirect same as magento do

where it understand that is a category page and properly redirect ad differentiate from the product page

need the easiest and simplest implementation code to add to my custom ecommerce website

as for example magento understand that mysite.com/whatever.html and mysite.com/whatever2.html that first is a category and open it correctly and the other is product page and open the product page

in addition magento add also subcategories to be linked with their parent also

mysite.com/maincategory/thiscategory.html

need same implementation in the easiest way.

Note again that i am using a php custom ecommerce website and note magento
Related categories: PHP JavaScript Magento MySQL HTML