I have a website and I’m trying to rewrite it’s url.
It’s pretty simple, but i’m not understanding how to do it.
The pages are the next ones:
http://localhost/site/index.php?p=home, etc. home is a parameter, and rewrite should be like this: http://localhost/site/home.html
http://localhost/site/section.php?id=someid and i want it to be like http://localhost/site/the-name-of-the-section-from-database-SOMEID
http://localhost/site/product.php?id=someid and i want it to be like http://localhost/site/category-name/product-name-SOMEID
I think it’s simple, but I still don’t understand how to do it. Please, help me.
Thanks!
Put these lines in your ROOT .htaccess: