PHP Redirects QueryString to Page

Posted on 2013-06-12
Last Modified: 2013-07-21
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 (title: Golden Image)

I have to assume this can be done, but I need a starting point.  Ideas?
Question by:mopar003
  • 3
  • 2
LVL 31

Expert Comment

by:Marco Gasi
ID: 39241517
LVL 15

Expert Comment

by:Jagadishwor Dulal
ID: 39241580
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??

Author Comment

ID: 39241583
I am running on a Windows IIS6.  I dont think mod_rewrite works for IIS.
Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

LVL 31

Accepted Solution

Marco Gasi earned 500 total points
ID: 39241610
There is an extension for IIS you can read about here:, but I can't help you since I use Apache :)

Author Comment

ID: 39241677
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/

LVL 31

Expert Comment

by:Marco Gasi
ID: 39342800
I'm very glad my little effort helped you. Thanks for points! :)

Featured Post

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question