.htaccess 在url中隐藏页面扩展名和表名
例如,如何隐藏我的页面扩展名.htaccess 在url中隐藏页面扩展名和表名,.htaccess,asp-classic,web-config,.htaccess,Asp Classic,Web Config,例如,如何隐藏我的页面扩展名 mysite.com/index.asp 如何取消扩展名.asp 以及如何在URL中隐藏表字段名。例如,我正在显示记录2的详细信息。因此,链接将是 mysite.com/details?record_id=2 如何取下记录_1d=2使其生效 mysite.com/details 我正在使用asp classic 谢谢你想要这个: 您的规则如下所示: <rewrite> <rules> <rule na
mysite.com/index.asp
如何取消扩展名.asp
以及如何在URL中隐藏表字段名。例如,我正在显示记录2的详细信息。因此,链接将是
mysite.com/details?record_id=2
如何取下记录_1d=2
使其生效
mysite.com/details
我正在使用asp classic
谢谢你想要这个:
您的规则如下所示:
<rewrite>
<rules>
<rule name="RewriteASP">
<match url="(.*)" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="{R:1}.asp" />
</rule>
</rules>
</rewrite>
据我所知,如果不重新配置代码以通过HTTP POST传递数据,就无法重写查询字符串