I need to set rules in the url rewriting in my web application . One example would be, I need to show only the .aspx extention and hide the page id and language. How do I do that? Please help
Sounds like you need to write an own url rewrite provider.
Could you give a bit more background as to why you're doing your own url rewriting? EPiServer supports friendly URL rewriting out of the box. e.g. it hides both aspx, language and page ID.
You have a section in episerver.config called <urlRewrite>. Default provider should be EPiServerFriendlyUrlRewriteProvider.
But if you need a custom implementation then a good place to start would be Ted Nyberg's post on how to implement a custom URL rewrite provider. I'm sure you could tweak it to suit your needs.
This is indeed a custom requirement of the application that the url will only show the extension of the page and hide the pageid as well as language.
Is there anyway we can do it using regular expressions in web.config ??
I think you'd have to implement your own URL rewriting engine if you want to use regular expressions.
Without knowing exactly how the functionality will be implemented in your application I'd recommend you start over at MSDN where they have more information on the subject.
There's an article of how to implement an URL rewriter using either HttpModule or HttpHandler together with regex here: http://msdn.microsoft.com/en-us/library/ms972974.aspx.
Is there a way to hide the container foldername (Page in tree structure just holding child pages) from the URL in EPiServer CMS 6 R2.