mod rewrite, title slugs and htaccess
- by chris
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?