Solved

PHP Redirects QueryString to Page

Posted on 2013-06-12
6
199 Views
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)
to
http://www.mysite.com/gallery/golden-image/

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

Expert Comment

by:Marco Gasi
ID: 39241517
0
 
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??
0
 
LVL 1

Author Comment

by:mopar003
ID: 39241583
I am running on a Windows IIS6.  I dont think mod_rewrite works for IIS.
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 30

Accepted Solution

by:
Marco Gasi earned 500 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 :)
0
 
LVL 1

Author Comment

by:mopar003
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/

gallery/CATEGORY/TITLE/
0
 
LVL 30

Expert Comment

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

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
This article discusses how to create an extensible mechanism for linked drop downs.
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
The viewer will learn how to count occurrences of each item in an array.

759 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now