Link to home
Start Free TrialLog in
Avatar of mopar003
mopar003

asked on

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?
Avatar of Marco Gasi
Marco Gasi
Flag of Spain image

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??
Avatar of mopar003
mopar003

ASKER

I am running on a Windows IIS6.  I dont think mod_rewrite works for IIS.
ASKER CERTIFIED SOLUTION
Avatar of Marco Gasi
Marco Gasi
Flag of Spain image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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/
I'm very glad my little effort helped you. Thanks for points! :)