mod rewrite, title slugs and htaccess
Posted
by chris
on Stack Overflow
See other posts from Stack Overflow
or by chris
Published on 2010-04-22T12:32:04Z
Indexed on
2010/04/22
12:33 UTC
Read the original article
Hit count: 253
I have been taken in to provide some seo guidance on a website which has been running since 2005. My problem is i want to use clean urls.
The code that handles the url is hidden away in some class file.. and with over a few thousand lines of code its a struggle to rewrite it.
So I'm think, I have gone through all the products and created a slug for them as a field in the product table. Is it possible to do something like an intermediate file for htaccess.
Some thing like
1./clean-slug-comes-in/
2.htaccess catches this and uses slug.php to find the relevant product id for the slug.
3.Then product.php?id=(ID.found.from.2) is loaded?
© Stack Overflow or respective owner