在线求助:httpd.ini转htaccess 35
[ISAPI_Rewrite]#3600=1hourCacheClockRate3600RepeatLimit32#Blockexternalaccesstothehtt...
[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]
# 首页
RewriteRule /index\.html /index\.php [N,I]
# 栏目页
RewriteRule /list-(\d+)-(\d+)\.html.* /index\.php\?m=content&c=index&a=lists&catid=$1&page=$2 [N,I]
# 内容页
RewriteRule /show-(\d+)-(\d+)-(\d+)\.html.* /index\.php\?m=content&c=index&a=show&catid=$1&id=$2&page=$3 [N,I]
RewriteRule /content-(\d+)-(\d+)-(\d+)\.html.* /index\.php\?m=content&c=index&a=show&catid=$1&id=$2&page=$3 [N,I]
# Tag页
RewriteRule ^(.*)_([0-9]+)_([0-9]+)\.html.* $1/index\.php\?m=content&c=tag&catid=16&tag=$2&page=$3
RewriteRule ^/dir/([^./]*)\.html.* /dir/script\.cgi\?doc=$1
# 筛选
RewriteRule ^/list-(\d+)-(\d+)-(\d+)-(\d+)-(\d+)-(\d+)-(\d+)\.html.* /index\.php\?m=content&c=index&a=lists&catid=$1&page=$2&type=$3&xueke=$4&moshi=$5&zhouqi=$6&leixing=$7 [N,I]
# tag
RewriteRule ^/tags-(.+)\.html.* /index\.php\?m=content&c=tag&a=lists&tag=$1&rewrite [N,I]
[PT] 展开
# 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]
# 首页
RewriteRule /index\.html /index\.php [N,I]
# 栏目页
RewriteRule /list-(\d+)-(\d+)\.html.* /index\.php\?m=content&c=index&a=lists&catid=$1&page=$2 [N,I]
# 内容页
RewriteRule /show-(\d+)-(\d+)-(\d+)\.html.* /index\.php\?m=content&c=index&a=show&catid=$1&id=$2&page=$3 [N,I]
RewriteRule /content-(\d+)-(\d+)-(\d+)\.html.* /index\.php\?m=content&c=index&a=show&catid=$1&id=$2&page=$3 [N,I]
# Tag页
RewriteRule ^(.*)_([0-9]+)_([0-9]+)\.html.* $1/index\.php\?m=content&c=tag&catid=16&tag=$2&page=$3
RewriteRule ^/dir/([^./]*)\.html.* /dir/script\.cgi\?doc=$1
# 筛选
RewriteRule ^/list-(\d+)-(\d+)-(\d+)-(\d+)-(\d+)-(\d+)-(\d+)\.html.* /index\.php\?m=content&c=index&a=lists&catid=$1&page=$2&type=$3&xueke=$4&moshi=$5&zhouqi=$6&leixing=$7 [N,I]
# tag
RewriteRule ^/tags-(.+)\.html.* /index\.php\?m=content&c=tag&a=lists&tag=$1&rewrite [N,I]
[PT] 展开
1个回答
展开全部
[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
# DISCUZ论坛+UCHome Rewrite规则,针对可操作IIS用户,
# 此默认规则只针对UCHome程序放在根目录中用独立域名访问的,论坛也可以直接用.
RewriteRule ^(.*)/archiver/((fid|tid)-[\w\-]+\.htm)\?*(.*)$ $1/archiver/index\.php\?$2&$4
RewriteRule ^(.*)/forum-([0-9]+)-([0-9]+)\.htm\?*(.*)$ $1/forumdisplay\.php\?fid=$2&page=$3&$4
RewriteRule ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.htm\?*(.*)$ $1/viewthread\.php\?tid=$2&extra=page\%3D$4&page=$3&$4
RewriteRule ^(.*)/space-(username|uid)-(.+)\.htm\?*(.*)$ $1/space\.php\?$2=$3&$4
RewriteRule ^(.*)/tag-(.+)\.htm\?*(.*)$ $1/tag\.php\?name=$2&$3
RewriteRule ^/(space|network)-(.+)\.htm$ /$1\.php\?rewrite=$2 [L]
RewriteRule ^/(space|network)\.htm$ /$1\.php [L]
RewriteRule ^/([0-9]+)$ /space\.php\?uid=$1 [L]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
# DISCUZ论坛+UCHome Rewrite规则,针对可操作IIS用户,
# 此默认规则只针对UCHome程序放在根目录中用独立域名访问的,论坛也可以直接用.
RewriteRule ^(.*)/archiver/((fid|tid)-[\w\-]+\.htm)\?*(.*)$ $1/archiver/index\.php\?$2&$4
RewriteRule ^(.*)/forum-([0-9]+)-([0-9]+)\.htm\?*(.*)$ $1/forumdisplay\.php\?fid=$2&page=$3&$4
RewriteRule ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.htm\?*(.*)$ $1/viewthread\.php\?tid=$2&extra=page\%3D$4&page=$3&$4
RewriteRule ^(.*)/space-(username|uid)-(.+)\.htm\?*(.*)$ $1/space\.php\?$2=$3&$4
RewriteRule ^(.*)/tag-(.+)\.htm\?*(.*)$ $1/tag\.php\?name=$2&$3
RewriteRule ^/(space|network)-(.+)\.htm$ /$1\.php\?rewrite=$2 [L]
RewriteRule ^/(space|network)\.htm$ /$1\.php [L]
RewriteRule ^/([0-9]+)$ /space\.php\?uid=$1 [L]
追问
大哥,我这不是论坛程序,不要随意复制粘贴呀~~~
追答
[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
RewriteRule ^(.*)/view-(.*)-(.*)\.htm$ $1/view\.php\?s=$2&y=$3
转换后:.htaccess(注意上面的红斜干)
RewriteEngine on
RewriteBase /
RewriteRule ^(.*)view-(.*)-(.*)\.htm$ $1/view.php?s=$2&y=$3
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
您可能需要的服务
百度律临官方认证律师咨询
平均3分钟响应
|
问题解决率99%
|
24小时在线
立即免费咨询律师
16259人正在获得一对一解答
哈尔滨冰雪奇缘1分钟前提交了问题
大连海浪之心6分钟前提交了问题
重庆晨曦微光6分钟前提交了问题