使用asp.net,c#,visualstudio 2008隐藏URL浏览器。 [英] Hiding the url extension at browser using asp.net ,c#,visualstudio 2008.
问题描述
先生,
我的问题是隐藏网址扩展名如
我的网页就像可见
http:// localhost:1234 / ExampleProject / Employee / Gridoperation.aspx in浏览器,
但我希望这样的 http:// localhost: 1234 / ExampleProject / Employee / Gridoperation /
i在web.config文件中踩到了例如
< 重写 > ;
< 规则 >
< rule name = 重定向到WWW stopProcessing = true >
< 匹配 url = 。* / > ;
< 条件 >
< add 输入 = {HTTP_HOST} pattern = ^ carlosag.net $ / >
< < span class =code-leadattribute> / conditions >
< ; / rule >
< / rules >
< / rewrite >
但我收到的情报错误如
system.webserver有无效的儿童元素nts'重写'
这是我的问题,请查看我的问题。
< blockquote> / >
< / conditions >
< / rule >
< / rules >
< / rewrite >
但我收到的情报错误如
system.webserver有无效的子元素'重写'
这是我的问题,请看一下我的问题。
你可以试试这个链接 [ ^ ]
hi sir ,
my problem is hiding the url extension like
my page like visible
http://localhost:1234/ExampleProject/Employee/Gridoperation.aspx in browser,
but i want like this http://localhost:1234/ExampleProject/Employee/Gridoperation/
i was tride in web.config file like for example
<rewrite>
<rules>
<rule name="Redirect to WWW" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{HTTP_HOST}" pattern="^carlosag.net$" />
</conditions>
</rule>
</rules>
</rewrite>
but i am getting intelligence error like
system.webserver has invalid child elements 'rewrite'
this is my problem, pls see once my problem .
" /> </conditions> </rule> </rules> </rewrite>
but i am getting intelligence error like
system.webserver has invalid child elements 'rewrite'
this is my problem, pls see once my problem .
you can try this link[^]
这篇关于使用asp.net,c#,visualstudio 2008隐藏URL浏览器。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!