Last post Oct 09, 2014 11:12 AM by Mikesdotnetting
Oct 09, 2014 05:43 AM|ssvikramuk|LINK
I would like to page to my work without .cshtml extension. I have already have a code in web.config. But still no luck.
<remove fileExtension=".cshtml" />
<add fileExtension=".cshtml" allowed="true" />
Oct 09, 2014 05:50 AM|adeelehsan|LINK
See the following link:
Oct 09, 2014 05:55 AM|ssvikramuk|LINK
i have tried but still no luck
Oct 09, 2014 11:12 AM|Mikesdotnetting|LINK
By default, the Web Pages framework allows you to omit the file extension in urls. You don't need to add anything to your web.config file to get this to work. If you have a file called about.cshtml, you can request it simply by typing
www.yourdomain.com/about in your address bar.