欢迎来到冰点文库! | 帮助中心 分享价值,成长自我!
冰点文库
全部分类
  • 临时分类>
  • IT计算机>
  • 经管营销>
  • 医药卫生>
  • 自然科学>
  • 农林牧渔>
  • 人文社科>
  • 工程科技>
  • PPT模板>
  • 求职职场>
  • 解决方案>
  • 总结汇报>
  • ImageVerifierCode 换一换
    首页 冰点文库 > 资源分类 > DOCX文档下载
    分享到微信 分享到微博 分享到QQ空间

    最全的伪静态规则和设置方法.docx

    • 资源ID:8845298       资源大小:17.36KB        全文页数:10页
    • 资源格式: DOCX        下载积分:3金币
    快捷下载 游客一键下载
    账号登录下载
    微信登录下载
    三方登录下载: 微信开放平台登录 QQ登录
    二维码
    微信扫一扫登录
    下载资源需要3金币
    邮箱/手机:
    温馨提示:
    快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。
    如填写123,账号就是123,密码也是123。
    支付方式: 支付宝    微信支付   
    验证码:   换一换

    加入VIP,免费下载
     
    账号:
    密码:
    验证码:   换一换
      忘记密码?
        
    友情提示
    2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
    3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
    4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。
    5、试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。

    最全的伪静态规则和设置方法.docx

    1、最全的伪静态规则和设置方法最近陆续有很多站长过来询问伪静态的问题,现就分享下目前网上流行的各种程序在iis下的规则和设置方法: 1、shopex4.8下载3.0的免费Rewrite组件 按照默认路径安装后,打开C:Program FilesHeliconISAPI_Rewrite3httpd.conf加入以下规则:# Helicon ISAPI_Rewrite configuration file# Version 3.1.0.56RewriteBase /RewriteCond %REQUEST_FILENAME .(html|htm|php|php2|php3|php4|php5|phtm

    2、l|pwml|inc|asp|aspx|ascx|jsp|cfm|cfc|pl|cgi|shtml|shtm|phtm|xml)$RewriteCond %REQUEST_FILENAME !-fRewriteCond %REQUEST_FILENAME !-dRewriteRule (.*)$ index.php?$1 LISAPI_Rewrite# 3600 = 1 hourCacheClockRate 3600RepeatLimit 32# Protect httpd.ini and httpd.parse.errors files# from accessing through HTT

    3、PRewriteRule (.*)/archiver/(fid|tid)-0-9+.html)?*(.*)$ $1/archiver/index.php?$2&$4RewriteRule (.*)/forum-(0-9+)-(0-9+).html?*(.*)$ $1/forumdisplay.php?fid=$2&page=$3&$4RewriteRule (.*)/thread-(0-9+)-(0-9+)-(0-9+).html?*(.*)$ $1/viewthread.php?tid=$2&extra=page%3D$4&page=$3&$4RewriteRule (.*)/space-(

    4、username|uid)-(.+).html?*(.*)$ $1/space.php?$2=$3&$4RewriteRule (.*)/tag-(.+).html?*(.*)$ $1/tag.php?name=$2&$3下面就需要配置iis为shopex4.8加载组件了:打开iis,右键你的站点属性-ISAPI 筛选器-添加-筛选器名称是ISAPI_Rewrite3 -可执行文件就是ISAPI_Rewrite.dll的路径,比如C:Program FilesHeliconISAPI_Rewrite3ISAPI_Rewrite.dll最后重启iis当然你可以把ISAPI_Rewrite3目录放

    5、入站点根目录下,但记得要给一个users读权限。如果都设置了还不行,可为网站跟目录加一个“network service”的读权限。注意:有些服务器或者vps有做权限的,安装后httpd.conf可能只有everyone和system的权限,如果修改不了文件就添加一个administrator的权限。2、Discuz6+ecshop规则如下:ISAPI_Rewrite# 3600 = 1 hourCacheClockRate 3600RepeatLimit 32# Protect httpd.ini and httpd.parse.errors files# from accessing th

    6、rough HTTPRewriteCond %HTTP_HOSTRewriteRule /index.html /index.php IRewriteRule /default.html /index.php IRewriteRule /feed.xml /feed.php IRewriteRule /category-(0-9+).html /category.php?id=$1 IRewriteRule /category-(0-9+)-(0-9+).html /category.php?id=$1&page=$2 IRewriteRule /category-(0-9+)-(0-9+)-

    7、(.+)-(a-zA-Z+).html /category.php?id=$1&page=$2&sort=$3&order=$4 IRewriteRule /goods-(0-9+).html /goods.php?id=$1 IRewriteRule /article_cat-(0-9+).html /article_cat.php?id=$1 IRewriteRule /article_cat-(0-9+)-(0-9+).html /article_cat.php?id=$1&page=$2 IRewriteRule /article_cat-(0-9+)-(0-9+)-(.+)-(a-z

    8、A-Z+).html /article_cat.php?id=$1&page=$2&sort=$3&order=$4 IRewriteRule /article-(0-9+).html /article.php?id=$1 IRewriteRule /search-b(0-9+) /search.php?brand=$1 IRewriteRule /search-(0-9+)-(-*)-(a-zA-Z+)-k(.*).html /search.php?page=$1&sort=$2&order=$3&keywords=$4 IRewriteRule /search-(0-9+)-(-*)-(a

    9、-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#discuzRewriteRule (.*)/archiver/(fid|tid)-w-+.html)?*(.*)$ $1/archiver/index.php?$2&$4RewriteRule (.*)/forum-(0-9+)-(0-9+).html?*(.*)$ $1/forumdisplay.php?fid=$2&page=$3&$

    10、4RewriteRule (.*)/thread-(0-9+)-(0-9+)-(0-9+).html?*(.*)$ $1/viewthread.php?tid=$2&extra=page%3D$4&page=$3&$4RewriteRule (.*)/space-(username|uid)-(.+).html?*(.*)$ $1/space.php?$2=$3&$4RewriteRule (.*)/tag-(.+).html?*(.*)$ $1/tag.php?name=$2&$3然后配置iis加载组件,方法类似shopex4.8:打开iis,右键你的站点属性-ISAPI 筛选器-添加-筛选

    11、器名称是Rewrite -可执行文件就是Rewrite.dll的路径,比如E:homeLocalUserrewriteRewrite.dll最后重启iis3、discuz规则如下:ISAPI_Rewrite# 3600 = 1 hourCacheClockRate 3600RepeatLimit 32# Protect httpd.ini and httpd.parse.errors files# from accessing through HTTPRewriteRule (.*)/archiver/(a-z0-9-+.html)?*(.*)$ $1/archiver/index.php?$

    12、2&$3RewriteRule (.*)/forum-(0-9+)-(0-9+).html?*(.*)$ $1/forumdisplay.php?fid=$2&page=$3&$4RewriteRule (.*)/thread-(0-9+)-(0-9+)-(0-9+).html?*(.*)$ $1/viewthread.php?tid=$2&extra=page%3D$4&page=$3&$4RewriteRule (.*)/profile-(username|uid)-(.+).html?*(.*)$ $1/viewpro.php?$2=$3&$4RewriteRule (.*)/space

    13、-(username|uid)-(.+).html?*(.*)$ $1/space.php?$2=$3&$4打开iis,右键你的站点属性-ISAPI 筛选器-添加-筛选器名称是Rewrite -可执行文件就是Rewrite.dll的路径,比如E:homeLocalUserrewriteRewrite.dll最后重启iis4、ecshop规则如下:ISAPI_Rewrite# ECSHOPRewriteRule /index.html /index.php IRewriteRule /default.html /index.php IRewriteRule /ecshop/feed.xml /e

    14、cshop/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 IRewriteRule (.*)/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 /e

    15、cshop/category-(0-9+)-b(0-9+)-(0-9+)(.*).html$ /ecshop/category.php?id=$1&brand=$2&page=$3 IRewriteRule (.*)/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 IRewriteRule (.*)/c

    16、ategory-(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 IRewriteRule (.*)/category-(0-9+)(.*).html$ $1/category.php?id=$2 I#RewriteRule /ecshop/goods-(0-9+)(.*).html$ /ecshop/goods.php?id=$1 IRewriteRule (.*)/goods-(0

    17、-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 IRewriteRule (.*)/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

    18、/article_cat-(0-9+)-(0-9+)(.*).html$ /ecshop/article_cat.php?id=$1&page=$2 IRewriteRule (.*)/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 IRewriteRule (.*)/article_cat-(0-9+)(.*).html$ $1/article

    19、_cat.php?id=$2 I#RewriteRule /ecshop/article-(0-9+)(.*).html$ /ecshop/article.php?id=$1 IRewriteRule (.*)/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 IRewriteRule (.*)/bran

    20、d-(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 IRewriteRule (.*)/brand-(0-9+)-c(0-9+)-(0-9+)(.*).html $1/brand.php?id=$2&cat=$3&page=$4 I#RewriteRule

    21、/ecshop/brand-(0-9+)-c(0-9+)(.*).html /ecshop/brand.php?id=$1&cat=$2 IRewriteRule (.*)/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 IRewriteRule (.*)/brand-(0-9+)(.*).html $1/brand.php?id=$2 I#RewriteRule /ecshop/tag-(.*)

    22、.html /ecshop/search.php?keywords=$1 IRewriteRule (.*)/tag-(.*).html $1/search.php?keywords=$2 I5、dvbbs规则如下:ISAPI_Rewrite# 3600 = 1 hourCacheClockRate 3600RepeatLimit 32# Block external access to the httpd.ini and httpd.parse.errors filesRewriteRule /httpd(?:.ini|.parse.errors).* / F,I,O# Block exte

    23、rnal access to the Helper ISAPI ExtensionRewriteRule .*.isrwhlp / F,I,O# 重写index.aspRewriteRule /(你的论坛所在目录,以根目录起)/index_(d+)_(.*)_(d+)_(d+).html /(你的论坛所在目录,以根目录起)/index.asp?boardid=$1&action=$2&topicmode=$3& amp;page=$4 N,IRewriteRule /(你的论坛所在目录,以根目录起)/index_(d+)_(d+)_(.*).html /(你的论坛所在目录,以根目录起)/ind

    24、ex.asp?boardid=$1&page=$2&action=$3 N,IRewriteRule /(你的论坛所在目录,以根目录起)/index_(d+)_(d+).html /(你的论坛所在目录,以根目录起)/index.asp?boardid=$1&topicmode=$2 N,IRewriteRule /(你的论坛所在目录,以根目录起)/index_(d+)_(d+)_.html /(你的论坛所在目录,以根目录起)/index.asp?boardid=$1&page=$2 N,IRewriteRule /(你的论坛所在目录,以根目录起)/index_(d+)_.html /(你的论坛

    25、所在目录,以根目录起)/index.asp?boardid=$1 N,IRewriteRule /(你的论坛所在目录,以根目录起)/index_(d+).html /(你的论坛所在目录,以根目录起)/index.asp?boardid=$1 N,IRewriteRule /(你的论坛所在目录,以根目录起)/index.html(.*) /(你的论坛所在目录,以根目录起)/index.asp N,I# 重写dispbbs.aspRewriteRule /(你的论坛所在目录,以根目录起)/dispbbs_(d+)_(d+)_(d+)_skin(d+)_(d+)_(d+).html /(你的论坛所在

    26、目录,以根目录起)/dispbbs.asp?boardid=$1&replyid=$2&id=$3& skin=$4&page=$5&star=$6 N,IRewriteRule /(你的论坛所在目录,以根目录起)/dispbbs_(d+)_(d+)_(d+)_skin(d+)_(d+).html /(你的论坛所在目录,以根目录起)/dispbbs.asp?boardid=$1&replyid=$2&id=$3& skin=$4&star=$5 N,IRewriteRule /(你的论坛所在目录,以根目录起)/dispbbs_(d+)_(d+)_(d+)_skin(d+).html /(你的论

    27、坛所在目录,以根目录起)/dispbbs.asp?boardID=$1&replyid=$2&ID=$3& skin=$4 N,IRewriteRule /(你的论坛所在目录,以根目录起)/dispbbs_(d+)_(d+)_(d+).html /(你的论坛所在目录,以根目录起)/dispbbs.asp?boardID=$1&ID=$2&page=$3 N,IRewriteRule /(你的论坛所在目录,以根目录起)/dispbbs_(d+)_(d+)_(d+)_(d+).html /(你的论坛所在目录,以根目录起)/dispbbs.asp?boardID=$1&ID=$2&star=$3&

    28、page=$4 N,I# 重写dv_rss.aspRewriteRule /(你的论坛所在目录,以根目录起)/dv_rss_(.*)_(d+)_(d+)_(d+)_(d+)_count(d+).html /(你的论坛所在目录,以根目录起)/dv_rss.asp?s=$1&boardid=$2&id=$3&page=$4& amp;star=$5&count=$6 N,IRewriteRule /(你的论坛所在目录,以根目录起)/dv_rss_(.*)_(d+)_(d+)_(d+)_(d+).html /(你的论坛所在目录,以根目录起)/dv_rss.asp?s=$1&boardid=$2&id

    29、=$3&page=$4& amp;star=$5 N,IRewriteRule /(你的论坛所在目录,以根目录起)/dv_rss_(.*)_(d+)_(d+)_(d+).html /(你的论坛所在目录,以根目录起)/dv_rss.asp?s=$1&boardid=$2&id=$3&page=$4 N,IRewriteRule /(你的论坛所在目录,以根目录起)/dv_rss_(.*)_(d+)_(d+)_count(d+).html /(你的论坛所在目录,以根目录起)/dv_rss.asp?s=$1&boardid=$2&page=$3& count=$4 N,IRewriteRule /(你的论坛所在目录,以根目录起)/dv_rss_(.


    注意事项

    本文(最全的伪静态规则和设置方法.docx)为本站会员主动上传,冰点文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰点文库(点击联系客服),我们立即给予删除!

    温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。




    关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们

    copyright@ 2008-2023 冰点文库 网站版权所有

    经营许可证编号:鄂ICP备19020893号-2


    收起
    展开