Jump to content

How to make SEO friendly URL structure using PHP?


rahulephp

Recommended Posts

Hi,

 

I need to send product id with URL something like this:

http://www.example.com/product.php?id=292&name=sony-digital-camera

 

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

http://www.example.com/sony-digital-camera-292.php

 

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)

http://www.example.com/sony-digital-camera-292.php

(without "product.php")

 

Thank you in anticipation

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.