I am working on a ask answer website and thanks to Alex, I got the permalinks I wanted to have on the website (http://stackoverflow.com/questions/2127913/php-permalinks-how-to-change).
Here is the format..
Original: domainname.com/cat/how-are-you-|162
New permalinks: domainname.com/cat/how-are-you-|162.html
The new permalinks won't work i.e, it doesn't load the page and displays 404 Not found error. My knowledge of rewriterules are very basics, I did try some functions but to my dismay, they didn't work at all.
How do I redirect original to the new permalinks using htaccess file?
Thank you.
Edit1: @Ignacio - Currently, I haven't implemented it on the server as I don't want to lose traffic, but I can do it once again tonite and will update with the result.
@Pekka - Here is the .htaccess file http://pastebin.com/m23c7d2b6