Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


PHP Redirects QueryString to Page

Posted on 2013-06-12
Medium Priority
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
http://www.mysite.com/gallery/index.php?id=55 (title: Golden Image)

I have to assume this can be done, but I need a starting point.  Ideas?
Question by:mopar003
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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.
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!

LVL 31

Accepted Solution

Marco Gasi earned 2000 total points
ID: 39241610
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 :)

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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
The viewer will learn how to dynamically set the form action using jQuery.
This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.
Suggested Courses

618 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