• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 220
  • Last Modified:

PHP Redirects QueryString to Page

I would like to improve SEO results for a site that is currently being fed by a database and as such has pages with things like gallery/index.php?id=55 with a title of Golden Image

How do I convert a dynamic ID driven page to go from
http://www.mysite.com/gallery/index.php?id=55 (title: Golden Image)
to
http://www.mysite.com/gallery/golden-image/

I have to assume this can be done, but I need a starting point.  Ideas?
0
mopar003
Asked:
mopar003
  • 3
  • 2
1 Solution
 
Marco GasiFreelancerCommented:
0
 
Jagadishwor DulalBraces MediaCommented:
You will need to manage your code which will load page by title not by id if the page have unique title or seo friendly link then your can do it. Can you post your table structure??
0
 
mopar003Author Commented:
I am running on a Windows IIS6.  I dont think mod_rewrite works for IIS.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
Marco GasiFreelancerCommented:
There is an extension for IIS you can read about here: http://www.iis.net/downloads/microsoft/url-rewrite, but I can't help you since I use Apache :)
0
 
mopar003Author Commented:
Table structure is:
ID     TITLE                 CATEGORY  MOREINFO

55     Golden Image   Paintings    Lots of details about this product


so instead of gallery/?id=55, I want gallery/paintings/golden-image/

gallery/CATEGORY/TITLE/
0
 
Marco GasiFreelancerCommented:
I'm very glad my little effort helped you. Thanks for points! :)
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now