views:

199

answers:

1

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

A: 
Jeremy Stein
Thanks Jeremy, I did make the changes but they didn't work primarily because .html extension was assigned in the core files and it was done with the help of Alex (member of this community) in the file index.tpl. Right now, the css is stripped from the website for no particular reason. I would appreciate if you can check out this thread http://stackoverflow.com/questions/2127913/php-permalinks-how-to-change and the website is http://studentask.com
regguy