Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
517 views
in Technique[技术] by (71.8m points)

iis - hide extensions of the pages with web.config

How do I hide the extensions of the pages?

Example ... access as is the normal asp page, but I would like to access the page or pages as ... without. asp

In my case I want it in web.config

Thanks!

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

You can use IIS URL Rewrite to do that, you can download it from: http://www.iis.net/download/URLRewrite

After that you can easily write rules to rewrite the path to match anything you want, including removing file extensions, etc.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...