Hide file extension

I want to remove the file-extension (like .html) for users of IE, FF and google Chrome.

I have a hyperlink like : www.coco/New.html.

When I type www.coco/New I receive a 404 error.

I want users to only type www.coco/New in all browsers.

What can I do in ASP " visual web developer "? Is it possible to adding some code in project "Web.config"?

Answers


Change / duplicate the file name as index.html then save it in a folder named New so the url will be www.coco/New/index.html then the page will also display when www.coco/New is typed


Need Your Help

NUNIT Testing Log files in c#

c# logging nunit

I am trying to verify that certain errors are logged in log4net file and how many times.

CKeditor Toolbar : AddButton (3.6)

javascript ckeditor toolbar

I want to add a custom button to the toolbar.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.