How to hide/change asp.net page extension from the viewer? -
How to hide / change asp.net page extensions from the client-side?
That means when reaching a page www.xyz.com/Dir/MyPage.aspx
, the viewer should only select www.xyz.com/Dir/MyPage.html < / Code> or
will see www.xyz.com/Dir/MyPage/code>.
You need to use the URL rewrite. If you are using IIS 7 you can use I also use the URL relay software, in fact you will end up creating a rewrite rule to add the .aspx extension to IIS page requests, which have There is no extension. Then all your links created in your code should be created without the .aspx extension.
I know that this reaction is a bit short, but I suggest that you start learning about rewriting the URL.
EDIT: I'm not sure that you will get it, but I have created a screencast and posted it on my blog which includes the original idea. I hope it helps: -)
Comments
Post a Comment