分享

写回答

发帖

[提问] 谁帮我把.htaccess转成web.config,谢谢

GoDaddy GoDaddy 1246 人阅读 | 1 人回复

发表于 2011-9-23 11:06:02 | 显示全部楼层 |阅读模式

[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600

RepeatLimit 32

RewriteRule ^(.*)/uhome-(.+)-(.+)-(.+)-(.+)\?*(.*)$ $1/shop\.php\?firstRow=$4&totalRows=$5&uid=$3&action=$2
RewriteRule ^(.*)/uhome-(.+)-(.+)-(.+)\?*(.*)$ $1/shop\.php\?uid=$3&action=$2&id=$4
RewriteRule ^(.*)/uhome-(.+)-(.+)\?*(.*)$ $1/shop\.php\?uid=$2&action=$3
RewriteRule ^(.*)/uhome-(.+)\?*(.*)$ $1/shop\.php\?uid=$2

RewriteRule ^(.*)/(.+)-(.+)-(.+).html(.+)\?*(.*)$ $1/index\.php\?m=$2&s=$3&id=$4$5
RewriteRule ^(.*)/(.+)-(.+)-(.+).html\?*(.*)$ $1/index\.php\?m=$2&s=$3&id=$4
RewriteRule ^(.*)/(.+)-(.+).html(.+)\?*(.*)$ $1/index\.php\?m=$2&s=$3$4
RewriteRule ^(.*)/(.+)-(.+).html\?*(.*)$ $1/index\.php\?m=$2&s=$3
RewriteRule ^(.*)/(\w+).html$ $1/index\.php\?m=$2

RewriteRule ^(.*)/_(.+)-(.+)-(.+)/(.+)\?*(.*)$ $1/index\.php\?m=$2&s=$3&id=$4$5
RewriteRule ^(.*)/_(.+)-(.+)-(.+)/\?*(.*)$ $1/index\.php\?m=$2&s=$3&id=$4
RewriteRule ^(.*)/_(.+)-(.+)/(.+)\?*(.*)$ $1/index\.php\?m=$2&s=$3$4
RewriteRule ^(.*)/_(.+)-(.+)/\?*(.*)$ $1/index\.php\?m=$2&s=$3
RewriteRule ^(.*)/_(.+)/(.+)\?*(.*)$ $1/index\.php\?m=$2&$3
RewriteRule ^(.*)/_(.+)/\?*(.*)$ $1/index\.php\?m=$2

RewriteRule ^(.*)/templates/(.+)/*.htm$ /404.php

ErrorDocument 404 /404.php

回答|共 1 个

lwbo1987

发表于 2011-9-23 11:16:22 | 显示全部楼层

回复 1# 的帖子

可以网上搜下.htaccess在线转换web.config,可以参考上面的结果
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则