URL REwriting removing / sepratores and using - instead

Hello

First of all thank You for reading the post.
I have a website where the present URLs for the pages are written like -
www.example.com/india/delhi/sports/cricket-bats.html

My client wants to have it like -www.example.com/india-delhi-sports-cricket-bats.html
Is it possible? The last value - “cricket-bats” are in fact a single value used to check with the data in the tables. So if we have separators with hiphens will that be a problem? How can i accomplish this?

Thank you Once again
Regards

Sathish

Yes, it will be a problem. That is exactly why I won’t use hyphens in a title (I use _'s to replace spaces; you may wish to do the same for your /'s).

Regards,

DK

Hi
To have more control of the accessed page in database, I add the page ID in URL (which is unique) instead of “.html”.
Like this: domain.net/category/page-title-abcd_12 .

MarPlo,

That would allow it to work by capturing all digits at the end of the {REQUEST_URI} string (following ^category/.*([0-9]+)$) and using that as the value for id in the query string.

Regards,

DK