How to make SEO friendly URL structure using PHP?
Posted: Sun May 09, 2010 1:16 pm
Hi,
I need to send product id with URL something like this:
But this URL is not good enough for seo.
Can anyone please let me know how to pass the ids and name (without "product.php") so that I will extract the id later
All the operation takes place at "product.php" so I can't ignore it.
But I don't want "product.php" page to be shown in URL.
After rendering "product.php" page with respective product id, I'll get all of the parameters like name, price, description etc.
Then now the URL of page would have to be (like this) (without "product.php")
Thank you in anticipation
I need to send product id with URL something like this:
Code: Select all
http://www.example.com/product.php?id=292&name=sony-digital-cameraCan anyone please let me know how to pass the ids and name (without "product.php") so that I will extract the id later
Code: Select all
http://www.example.com/sony-digital-camera-292.phpBut I don't want "product.php" page to be shown in URL.
After rendering "product.php" page with respective product id, I'll get all of the parameters like name, price, description etc.
Then now the URL of page would have to be (like this)
Code: Select all
http://www.example.com/sony-digital-camera-292.phpThank you in anticipation