IIS8怎么配置iis7.5伪静态配置

IIS8怎么配置伪静态_百度知道
IIS8怎么配置伪静态
3版本3种方案 url模块,规则在web, 或使用较高版本3.config 或使用rewrite1
知道智能回答机器人
我是知道站内的人工智能,可高效智能地为您解答问题。很高兴为您服务。
其他类似问题
为您推荐:
伪静态的相关知识
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁伪静态规则该怎么写?
- 系统天堂文章中心
&&&伪静态规则该怎么写?
伪静态规则该怎么写?
发布时间:来源:本站整理
伪静态是seo设置中相当重要的一门学问,对seo优化有着极大的好处,很多朋友想知道伪静态网站的规则,下面简单分析一下:
目前网上流行的各种程序在iis下的规则和设置方法:
  1、shopex4.8
  下载组件:
  按照默认路径安装后,打开C:\Program Files\Helicon\ISAPI_Rewrite3\httpd.conf
  加入以下规则:
  # Helicon ISAPI_Rewrite configuration file
  # Version 3.1.0.56
  RewriteBase /
  RewriteCond %{REQUEST_FILENAME} \.(html|htm|php|php2|php3|php4|php5|phtml|pwml|inc|asp|aspx|ascx|jsp|cfm|cfc|pl|cgi|shtml|shtm|phtm|xml)$
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php?$1 [L]
  [ISAPI_Rewrite]
  # 3600 = 1 hour
  CacheClockRate 3600
  RepeatLimit 32
  # Protect httpd.ini and httpd.parse.errors files
  # from accessing through HTTP
  RewriteRule ^(.*)/archiver/((fid|tid)-[0-9]+\.html)\?*(.*)$ $1/archiver/index\.php\?$2&$4
  RewriteRule ^(.*)/forum-([0-9]+)-([0-9]+)\.html\?*(.*)$ $1/forumdisplay\.php\?fid=$2&page=$3&$4
  RewriteRule ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html\?*(.*)$ $1/viewthread\.php\?tid=$2&extra=page\%3D$4&page=$3&$4
  RewriteRule ^(.*)/space-(username|uid)-(.+)\.html\?*(.*)$ $1/space\.php\?$2=$3&$4
  RewriteRule ^(.*)/tag-(.+)\.html\?*(.*)$ $1/tag\.php\?name=$2&$3
  下面就需要配置iis为shopex4.8加载组件了:
  打开iis,右键你的站点属性--ISAPI 筛选器--添加--筛选器名称是ISAPI_Rewrite3 --可执行文件就是ISAPI_Rewrite.dll的路径,比如C:\Program Files\Helicon\ISAPI_Rewrite3\ISAPI_Rewrite.dll
  最后重启iis
  当然你可以把ISAPI_Rewrite3目录放入站点根目录下,但记得要给一个users读权限。如果都设置了还不行,可为网站跟目录加一个&network service&的读权限。
  注意:有些服务器或者vps有做权限的,安装后httpd.conf可能只有everyone和system的权限,如果修改不了文件就添加一个administrator的权限。
  2、Discuz6+ecshop
  规则如下:
  [ISAPI_Rewrite]
  # 3600 = 1 hour
  CacheClockRate 3600
  RepeatLimit 32
  # Protect httpd.ini and httpd.parse.errors files
  # from accessing through HTTP
  RewriteCond %{HTTP_HOST}
  RewriteRule /index.html /index.php [I]
  RewriteRule /default.html /index.php [I]
  RewriteRule /feed.xml /feed.php [I]
  RewriteRule /category-([0-9]+).html /category\.php\?id=$1 [I]
  RewriteRule /category-([0-9]+)-([0-9]+).html /category\.php\?id=$1&page=$2 [I]
  RewriteRule /category-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+).html /category\.php\?id=$1&page=$2&sort=$3&order=$4 [I]
  RewriteRule /goods-([0-9]+)\.html /goods\.php\?id=$1 [I]
  RewriteRule /article_cat-([0-9]+).html /article_cat\.php\?id=$1 [I]
  RewriteRule /article_cat-([0-9]+)-([0-9]+).html /article_cat\.php\?id=$1&page=$2 [I]
  RewriteRule /article_cat-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+).html /article_cat\.php\?id=$1&page=$2&sort=$3&order=$4 [I]
  RewriteRule /article-([0-9]+).html /article\.php\?id=$1 [I]
  RewriteRule /search-b([0-9]+) /search\.php\?brand=$1 [I]
  RewriteRule /search-([0-9]+)-([^-]*)-([a-zA-Z]+)-k(.*).html /search\.php\?page=$1&sort=$2&order=$3&keywords=$4 [I]
  RewriteRule /search-([0-9]+)-([^-]*)-([a-zA-Z]+)-b([0-9]*)-k(.*)-s([0-9]*)-l([0-9]*).html /search\.php\?page=$1&sort=$2&order=$3&brand=$4&keywords=$5&min_price=$6&max_price=$7 [I]
  #discuz
  RewriteRule ^(.*)/archiver/((fid|tid)-[\w\-]+\.html)\?*(.*)$ $1/archiver/index\.php\?$2&$4
  RewriteRule ^(.*)/forum-([0-9]+)-([0-9]+)\.html\?*(.*)$ $1/forumdisplay\.php\?fid=$2&page=$3&$4
  RewriteRule ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html\?*(.*)$ $1/viewthread\.php\?tid=$2&extra=page\%3D$4&page=$3&$4
  RewriteRule ^(.*)/space-(username|uid)-(.+)\.html\?*(.*)$ $1/space\.php\?$2=$3&$4
  RewriteRule ^(.*)/tag-(.+)\.html\?*(.*)$ $1/tag\.php\?name=$2&$3
  然后配置iis加载组件,方法类似shopex4.8:
  打开iis,右键你的站点属性--ISAPI 筛选器--添加--筛选器名称是Rewrite --可执行文件就是Rewrite.dll的路径,比如E:\home\LocalUser\rewrite\Rewrite.dll
  最后重启iis
  3、discuz
  规则如下:
  [ISAPI_Rewrite]
  # 3600 = 1 hour
  CacheClockRate 3600
  RepeatLimit 32
  # Protect httpd.ini and httpd.parse.errors files
  # from accessing through HTTP
  RewriteRule ^(.*)/archiver/([a-z0-9\-]+\.html)\?*(.*)$ $1/archiver/index\.php\?$2&$3
  RewriteRule ^(.*)/forum-([0-9]+)-([0-9]+)\.html\?*(.*)$ $1/forumdisplay\.php\?fid=$2&page=$3&$4
  RewriteRule ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html\?*(.*)$ $1/viewthread\.php\?tid=$2&extra=page\%3D$4&page=$3&$4
  RewriteRule ^(.*)/profile-(username|uid)-(.+)\.html\?*(.*)$ $1/viewpro\.php\?$2=$3&$4
  RewriteRule ^(.*)/space-(username|uid)-(.+)\.html\?*(.*)$ $1/space\.php\?$2=$3&$4
  打开iis,右键你的站点属性--ISAPI 筛选器--添加--筛选器名称是Rewrite --可执行文件就是Rewrite.dll的路径,比如E:\home\LocalUser\rewrite\Rewrite.dll
  最后重启iis
  4、ecshop
  规则如下:
  [ISAPI_Rewrite]
  # ECSHOP
  RewriteRule /index.html /index.php [I]
  RewriteRule /default.html /index.php [I]
  RewriteRule /ecshop/feed.xml /ecshop/feed.php [I]
  #RewriteRule /ecshop/category-([0-9]+)-b([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ /ecshop/category.php?id=$1&brand=$2&page=$3&sort=$4&order=$5 [I]
  RewriteRule ^(.*)/category-([0-9]+)-b([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ $1/category\.php\?id=$2&brand=$3&page=$4&sort=$5&order=$6 [I]
  #RewriteRule /ecshop/category-([0-9]+)-b([0-9]+)-([0-9]+)(.*)\.html$ /ecshop/category.php?id=$1&brand=$2&page=$3 [I]
  RewriteRule ^(.*)/category-([0-9]+)-b([0-9]+)-([0-9]+)(.*)\.html$ $1/category\.php\?id=$2&brand=$3&page=$4 [I]
  #RewriteRule /ecshop/category-([0-9]+)-b([0-9]+)(.*)\.html$ /ecshop/category.php?id=$1&brand=$2 [I]
  RewriteRule ^(.*)/category-([0-9]+)-b([0-9]+)(.*)\.html$ $1/category\.php\?id=$2&brand=$3 [I]
  #RewriteRule /ecshop/category-([0-9]+)(.*)\.html$ /ecshop/category.php?id=$1 [I]
  RewriteRule ^(.*)/category-([0-9]+)(.*)\.html$ $1/category\.php\?id=$2 [I]
  #RewriteRule /ecshop/goods-([0-9]+)(.*)\.html$ /ecshop/goods.php?id=$1 [I]
  RewriteRule ^(.*)/goods-([0-9]+)(.*)\.html$ $1/goods\.php\?id=$2
  #RewriteRule /ecshop/article_cat-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ /ecshop/article_cat.php?id=$1&page=$2&sort=$3&order=$4 [I]
  RewriteRule ^(.*)/article_cat-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ $1/article_cat\.php\?id=$2&page=$3&sort=$4&order=$5 [I]
  #RewriteRule /ecshop/article_cat-([0-9]+)-([0-9]+)(.*)\.html$ /ecshop/article_cat.php?id=$1&page=$2 [I]
  RewriteRule ^(.*)/article_cat-([0-9]+)-([0-9]+)(.*)\.html$ $1/article_cat\.php\?id=$2&page=$3 [I]
  #RewriteRule /ecshop/article_cat-([0-9]+)(.*)\.html$ /ecshop/article_cat.php?id=$1 [I]
  RewriteRule ^(.*)/article_cat-([0-9]+)(.*)\.html$ $1/article_cat\.php\?id=$2 [I]
  #RewriteRule /ecshop/article-([0-9]+)(.*)\.html$ /ecshop/article.php?id=$1 [I]
  RewriteRule ^(.*)/article-([0-9]+)(.*)\.html$ $1/article\.php\?id=$2 [I]
  #RewriteRule /ecshop/brand-([0-9]+)-c([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)\.html /ecshop/brand.php?id=$1&cat=$2&page=$3&sort=$4&order=$5 [I]
  RewriteRule ^(.*)/brand-([0-9]+)-c([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html $1/brand\.php\?id=$2&cat=$3&page=$4&sort=$5&order=$6 [I]
  #RewriteRule /ecshop/brand-([0-9]+)-c([0-9]+)-([0-9]+)(.*)\.html /ecshop/brand.php?id=$1&cat=$2&page=$3 [I]
  RewriteRule ^(.*)/brand-([0-9]+)-c([0-9]+)-([0-9]+)(.*)\.html $1/brand\.php\?id=$2&cat=$3&page=$4 [I]
  #RewriteRule /ecshop/brand-([0-9]+)-c([0-9]+)(.*)\.html /ecshop/brand.php?id=$1&cat=$2 [I]
  RewriteRule ^(.*)/brand-([0-9]+)-c([0-9]+)(.*)\.html $1/brand\.php\?id=$2&cat=$3 [I]
  #RewriteRule /ecshop/brand-([0-9]+)(.*)\.html /ecshop/brand.php?id=$1 [I]
  RewriteRule ^(.*)/brand-([0-9]+)(.*)\.html $1/brand\.php\?id=$2 [I]
  #RewriteRule /ecshop/tag-(.*)\.html /ecshop/search.php?keywords=$1 [I]
  RewriteRule ^(.*)/tag-(.*)\.html $1/search\.php\?keywords=$2 [I]
  5、dvbbs
  规则如下:
  [ISAPI_Rewrite]
  # 3600 = 1 hour
  CacheClockRate 3600
  RepeatLimit 32
  # Block external access to the httpd.ini and httpd.parse.errors files
  RewriteRule /httpd(?:\.ini|\.parse\.errors).* / [F,I,O]
  # Block external access to the Helper ISAPI Extension
  RewriteRule .*\.isrwhlp / [F,I,O]
  # 重写index.asp
  RewriteRule /(你的论坛所在目录,以根目录起)/index_(\d+)_(.*)_(\d+)_(\d+)\.html /(你的论坛所在目录,以根目录起)/index\.asp\?boardid=$1&action=$2&topicmode=$3&page=$4 [N,I]
  RewriteRule /(你的论坛所在目录,以根目录起)/index_(\d+)_(\d+)_(.*)\.html /(你的论坛所在目录,以根目录起)/index\.asp\?boardid=$1&page=$2&action=$3 [N,I]
  RewriteRule /(你的论坛所在目录,以根目录起)/index_(\d+)_(\d+)\.html /(你的论坛所在目录,以根目录起)/index\.asp\?boardid=$1&topicmode=$2 [N,I]
  RewriteRule /(你的论坛所在目录,以根目录起)/index_(\d+)_(\d+)_\.html /(你的论坛所在目录,以根目录起)/index\.asp\?boardid=$1&page=$2 [N,I]
  RewriteRule /(你的论坛所在目录,以根目录起)/index_(\d+)__\.html /(你的论坛所在目录,以根目录起)/index\.asp\?boardid=$1 [N,I]
  RewriteRule /(你的论坛所在目录,以根目录起)/index_(\d+)\.html /(你的论坛所在目录,以根目录起)/index\.asp\?boardid=$1 [N,I]
  RewriteRule /(你的论坛所在目录,以根目录起)/index\.html(.*) /(你的论坛所在目录,以根目录起)/index.asp [N,I]
  # 重写dispbbs.asp
  RewriteRule /(你的论坛所在目录,以根目录起)/dispbbs_(\d+)_(\d+)_(\d+)_skin(\d+)_(\d+)_(\d+)\.html /(你的论坛所在目录,以根目录起)/dispbbs\.asp\?boardid=$1&replyid=$2&id=$3&skin=$4&page=$5&star=$6 [N,I]
  RewriteRule /(你的论坛所在目录,以根目录起)/dispbbs_(\d+)_(\d+)_(\d+)_skin(\d+)_(\d+)\.html /(你的论坛所在目录,以根目录起)/dispbbs\.asp\?boardid=$1&replyid=$2&id=$3&skin=$4&star=$5 [N,I]
  RewriteRule /(你的论坛所在目录,以根目录起)/dispbbs_(\d+)_(\d+)_(\d+)_skin(\d+)\.html /(你的论坛所在目录,以根目录起)/dispbbs.asp\?boardID=$1&replyid=$2&ID=$3&skin=$4 [N,I]
  RewriteRule /(你的论坛所在目录,以根目录起)/dispbbs_(\d+)_(\d+)_(\d+)\.html /(你的论坛所在目录,以根目录起)/dispbbs.asp\?boardID=$1&ID=$2&page=$3 [N,I]
  RewriteRule /(你的论坛所在目录,以根目录起)/dispbbs_(\d+)_(\d+)_(\d+)_(\d+)\.html /(你的论坛所在目录,以根目录起)/dispbbs.asp\?boardID=$1&ID=$2&star=$3&page=$4 [N,I]
  # 重写dv_rss.asp
  RewriteRule /(你的论坛所在目录,以根目录起)/dv_rss_(.*)_(\d+)_(\d+)_(\d+)_(\d+)_count(\d+)\.html /(你的论坛所在目录,以根目录起)/dv_rss.asp\?s=$1&boardid=$2&id=$3&page=$4&star=$5&count=$6 [N,I]
  RewriteRule /(你的论坛所在目录,以根目录起)/dv_rss_(.*)_(\d+)_(\d+)_(\d+)_(\d+)\.html /(你的论坛所在目录,以根目录起)/dv_rss.asp\?s=$1&boardid=$2&id=$3&page=$4&star=$5 [N,I]
  RewriteRule /(你的论坛所在目录,以根目录起)/dv_rss_(.*)_(\d+)_(\d+)_(\d+)\.html /(你的论坛所在目录,以根目录起)/dv_rss.asp\?s=$1&boardid=$2&id=$3&page=$4 [N,I]
  RewriteRule /(你的论坛所在目录,以根目录起)/dv_rss_(.*)_(\d+)_(\d+)_count(\d+)\.html /(你的论坛所在目录,以根目录起)/dv_rss.asp\?s=$1&boardid=$2&page=$3&count=$4 [N,I]
  RewriteRule /(你的论坛所在目录,以根目录起)/dv_rss_(.*)_(\d+)_(\d+)\.html /(你的论坛所在目录,以根目录起)/dv_rss.asp\?s=$1&boardid=$2&page=S3 [N,I]
  RewriteRule /(你的论坛所在目录,以根目录起)/dv_rss_(.*)_(\d+)\.html /(你的论坛所在目录,以根目录起)/dv_rss.asp\?s=$1&boardid=$2 [N,I]
  RewriteRule /(你的论坛所在目录,以根目录起)/dv_rss_(.*)\.html /(你的论坛所在目录,以根目录起)/dv_rss.asp\?s=$1 [N,I]
  RewriteRule /(你的论坛所在目录,以根目录起)/dv_rss(.*)\.html(.*) /(你的论坛所在目录,以根目录起)/dv_rss.asp [N,I]
  1、isapi_rewrite3.0和isapi_rewrite2.0不可随意混用。并不建议采用安装组件的方式,直接使用dll组件和规则就可以了。
  2、rewrite.dll以及规则可以放入任何一个目录,但记得要给该目录一个users的读权限。
  3、shopex4.8和其它程序有点不同,shopex4.8只能使用最新的rewirte3.0,老版本的不支持RewriteCond语法。
  4、如果是用的安装组件的方式,可能会对其它程序比如discuz、phpwind之类的有影响,那么就打开iis,
  右键网站属性--ISAPI 筛选器--删除isapi_rewrite这项,因为这里是对整个iis进行全局设置的,会造成其它程序的冲突
  5、因为shopex4.8目前很流行但又采用了不同的规则方式,所以规则最好别和其它程序在一起使用,而且是要为使用4.8的站点进行单独的isapi筛选设置,shopex也必须安装在根目录才可以,因为RewriteBase / 指定了在根目录,无法为每个客户单独配置这个文件。
  以上只是给出了最常用的shopex4.8和discuz6以及discuz+ecshop的规则以及配置方法,其它几种都大同小异了,主要是规则的不同,也都将做打包。
  因为篇幅和限制原因,已经把shopex4.7/4.8、discuz6/NT2.5、ecshop、dvbbs、phpwind、wordpress、Discuz6+ecshop等伪静态规则和组件打包,如有需要可到我公司官方网站进行查询下载。
  以上设置都是针对租用了独立服务器和vps的,在使用虚拟主机的就不用看了,因为作为服务商是应该做好了的,但目前还没有出现对所有流行程序都支持的吧。
小编精心为您推荐几款ftp上传软件:
Darrellwed
Scalp Cancer And Hair Loss Indocin Sr No Prescription Cash Delivery Online Tylenol Daytime Vietnam [url=http://archive.org/details/OrderZoviraxOnlineCheap ]Order Zovirax Cream Canada[/url]. Bad Foods Diabetes Low Glycemic Index Chaulmoogric Acid High Blood Pressure Opening Msm Files Healthy Weight Loss Aids . Name Normal Blood Pressure Levels
18 84 Blood Pressure . Snorting Remeron Blood Pressure Over
[url=/ ]Order Oxycodone Online Without Prescription[/url] Estradiol Level And Breast Cancer Cipro Flagyl Omnicef No Prescription Pharmacy Ondansetron Spain
[url=/topic/520202-buy-ticlid-online-no-prescription-required-buy-generic-ticlid-delivered-next-day-in-holywell/page__gopid__557822#entry557822]European Online Pharmacy Lamictal, Lamictal For Sale[/url]
[url=/topic/520259-buy-clarithromycin-without-prescription-clarithromycin-chemical-name/page__gopid__557827#entry557827]Can I Order Lamictal Online Legally, Buy Lamictal Tablets[/url]
[url=/topic/520097-how-to-buy-levaquin-online-pharmacy-sales-generic-levaquin-saturday-shipping-at-pembroke/page__gopid__557833#entry557833]Buy Clarinex Pay With Mastercard - Clarinex Overnight Discover Card[/url]
[url=http://mining./showthread.php?tid=359804]Clarina Visa Overnight - Clarina Canadian Pharmacy[/url]
[url=/topic/520318-buy-discount-imipramine-imipramine-product-monograph-at-ms-swan-lake/page__gopid__557846#entry557846]Buy Zyvox From India, Zyvox Credit Card[/url]
[url=/topic/520341-mellaril-overnight-delivery-mellaril-online-missouri/]Mellaril Overnight Delivery, Mellaril Online Missouri[/url]
Calf Raises Increase Testosterone
How Long Does Amoxicillin Take Depends . Canada Neggram Without Losartan No Rx Cozaar
[url=/imitrex25mgnoprescription ]Buy Free Imitrex Shipping[/url] Midwest Allergy Asthma Omaha Frances St Info On Trileptal Used Warfarin And Cimetidine Clin Pharmacokinet Unique Purim Costumes . Symptoms Of Arthritis In Back Taking Azithromycin While Pregnant Avoid Price Of Haldol [url=/levitra10mg ]Levitra Retail Price Buy Cheap[/url]. Buy Ampicillin With Online Natural Diabetes Cure Diflucan And Yeast Infection Supplement Prescription Yeast Allergy Dishes .
手游排行榜IIS8怎么配置伪静态_百度知道
IIS8怎么配置伪静态
提问者采纳
、查找应用程序扩展, 2,建议2,在页面右下方点“配置” 3:安装过Net Framework组件、在属性页面上选中“主目录”必备条件.:aspx,选中后点“编辑”按钮,右键点属性、复制可执.0版本以上 1、IIS上找到要设置伪静态的站点名称,查看可执行文件路径 4
来自团队:
其他类似问题
为您推荐:
伪静态的相关知识
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁5292人阅读
1、将下载的 IIS Rewrite 组件解压,放到适当的目录(如 C:Rewrite)下。
2、在“IIS管理器”里选择网站,右键,属性。安全起见,只给rewrite-ss目录everyone运行和读取的权限。
3、选择“ISAPI”,点击“添加”。
4、填入筛选器名称,如“rewrite”。
5、可执行文件下方点击“浏览”,选择刚才解压的Rewrite组件位置,Rewrite.dll。
6、确认选择正确后,点击“确定”。
7、点击“确定”,完成筛选器添加。
8、重启IIS。
9、重启IIS后,再次选择站点,右键,属性,看到如下所示向上的绿箭头,说明 IIS Rewrite 成功添加并运行。
IIS Rewrite 规则设置
解压后的 IIS Rewrite 组件目录(如 C:Rewrite)中,有一个 httpd.ini 文件,将相应规则写入到这个文件中即可。
1. 安装重写插件Rewrite.dll&
如果你的 IIS 服务器加载过 Rewrite.dll 则可以不用下载。&
Rewrite.dll文件:/UploadFiles/3525016.rar&
加载 Rewrite.dll&
在 IIS 的 Isapi 上添加筛选器&
筛选器名称为:re&
可执行文件选择 Rewrite.dll 就可以了!&
2. 配置 httpd.ini&
打开你的httpd.ini,找到&
[ISAPI_Rewrite]&
# 3600 = 1 hour&
CacheClockRate 3600&
RepeatLimit 32&
# Protect httpd.ini and httpd.parse.errors files&
# from accessing through HTTP&
RewriteRule ^(.*)/archiver/([a-z0-9-]+.html)$ $1/archiver/index.?$2&
RewriteRule ^(.*)/forum-([0-9]+)-([0-9]+).html$ $1/forumdisplay.php?fid=$2&page=$3&
RewriteRule ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+).html$ $1/viewthread.php?tid=$2&extra=page%3D$4&page=$3&
RewriteRule ^(.*)/profile-(username|uid)-(.+?).html$ $1/viewpro.php?$2=$3&
以上是 Discuz!官方提供的配置代码,注意正则格式。&
比如,将read.php?bl_id=123&bu_id=456 伪静态成 /html/123/456.html&
可以这样写:&
RewriteRule ^(.*)/html/([0-9]+)/([0-9]+).html$ $1/read.php?bl_id=$2&bu_id=$3 点击收藏:“IIS下下伪静态html(URL Rewrite)设置方法”
要使你的IIS服务器支持伪静态重写,按以下步骤来:
1. 安装重写插件Rewrite.dll
如果你的 IIS 服务器加载过 Rewrite.dll 则可以不用下载。
加载 Rewrite.dll
在 IIS 的 Isapi 上添加筛选器
筛选器名称为:re
可执行文件选择 Rewrite.dll 就可以了!
2. 配置 httpd.ini
打开你的httpd.ini,找到
[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP
RewriteRule ^(.*)/archiver/([a-z0-9-]+.html)$ $1/archiver/index.php?$2
RewriteRule ^(.*)/forum-([0-9]+)-([0-9]+).html$ $1/forumdisplay.php?fid=$2&page=$3
RewriteRule ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+).html$ $1/viewthread.php?tid=$2&extra=page%3D$4&page=$3
RewriteRule ^(.*)/profile-(username|uid)-(.+?).html$ $1/viewpro.php?$2=$3
以上是 Discuz!官方提供的配置代码,注意正则格式。
比如,将read.php?bl_id=123&bu_id=456 伪静态成 /html/123/456.html
可以这样写:
RewriteRule ^(.*)/html/([0-9]+)/([0-9]+).html$ $1/read.php?bl_id=$2&bu_id=$3
PW的规则:[ISAPI_Rewrite]
RewriteRule ^(.*)-htm-(.*)$ $1.php?$2
RewriteRule ^(.*)/simple/([a-z0-9_]+.html)$ $1/simple/index.php?$2
参考知识库
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:70421次
积分:1566
积分:1566
排名:第16981名
原创:94篇
(13)(5)(10)(1)(9)(5)(3)(7)(3)(9)(19)(2)(17)}

我要回帖

更多关于 iis8伪静态配置 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信