iis的伪静态规则
最佳回答
设置伪静态规则的具体步骤如下:
以IIS10 下设置伪静态规则为例:
1、首先需要安装Url重写模块,百度搜索,下载完安装,URL Rewrite Module。
2、然后重启机器,可以在iis全局看到URL rewrite模块。
3、然后点击要设置伪静态规则的站点,双击“URL 重写”图标。
4、然后进入“URL 重写”界面,点击右侧的“导入规则”。
5、进入“导入 mod_rewrite”界面,点击配置文件下面框最后的三个点。
6、找到伪静态规则文件:.htaccess,选中并点击打开。
7、回到“导入 mod_rewrite”界面,点击“导入”规则。
8、最后,点击右栏的“应用”按钮。
9、至此伪静态配置完成,iis上的伪静态规则是写在web.confg,在网站根目录上web.confg已写上相关程序规则
最新回答共有2条回答
-
游客
回复IIS服务器下ISAPI_Rewrite伪静态规则:
[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP
#heads
RewriteRule ^(.*)/Contact.html?*(.*)$ $1/index.php?pag=contact
RewriteRule ^(.*)/Manual-Submit-Software.html?*(.*)$ $1/index.php?a=pad&manual_submit
#others
RewriteRule ^(.*)/New.html?*(.*)$ $1/index.php?pag=new_prog&days=30
RewriteRule ^(.*)/New/Page(.*).html?*(.*)$ $1/index.php?pag=new_prog&days=30&page=$2
RewriteRule ^(.*)/Today-New.html?*(.*)$ $1/index.php?pag=new_prog&days=1
RewriteRule ^(.*)/Today-New/Page(.*).html?*(.*)$ $1/index.php?pag=new_prog&days=1&page=$2
RewriteRule ^(.*)/New-Hot.html?*(.*)$ $1/index.php?pag=new_prog&days=7&hits=10
RewriteRule ^(.*)/New-