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
- /clean-slug-comes-in/
- .htaccess catches this and uses slug.php to find the relevant product ID for the slug.
- Then product.php?id=(ID.found.from.2) is loaded.