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?
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?
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??
ASKER
I am running on a Windows IIS6. I dont think mod_rewrite works for IIS.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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-i mage/
gallery/CATEGORY/TITLE/
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-i
gallery/CATEGORY/TITLE/
I'm very glad my little effort helped you. Thanks for points! :)
More documentation about mod_rewrite here:
http://httpd.apache.org/docs/current/mod/mod_rewrite.html
http://www.askapache.com/htaccess/modrewrite-tips-tricks.html
Cheers