I am trying to remove html extension from pages using web.config. Below is the code i am using in web.config file
I know this is almost a year latter but I'll try. I'm not sure I understand your problem correctly but if I do I just use
Then the rest of the closing statements that you are using.