Thinksns iis7.0伪静态不能用的解决办法

widuu 2013-5-28 PHP技术 2,936 0 喜欢 (0)

今天有个哥们要用THINKSNS这个系统,但是他的系统是iis7.0的,把伪静态规则放到下边不管用,很纠结,找到了我,然后让我帮忙重写下伪静态,他的伪静态我们有重写,但是我修改了一下现在可以用了,然后放出来给大家!
[php]
<?xml version="1.0" encoding="UTF-8"?>

<configuration>
<system.webServer>
<httpRedirect enabled="true" />
<rewrite>
<rules>
<clear />
<rule name="url">
<match url="^/?url/([a-zA-Z0-9]+)$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="shorturl.php?url={R:1}" />
</rule>
<rule name="?rewrite">
<match url="^/?rewrite$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="public/rewrite.php" />
</rule>
<rule name="?page">
<match url="^/?page/([0-9a-zA-Z_]+)\.html$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="index.php?app=page&amp;mod=Index&amp;act=index&amp;page={R:1}&amp;%{QUERY_STRING}" />
</rule>
<rule name="?home">
<match url="^/?home$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="index.php?app=public&amp;mod=Index&amp;act=index&amp;%{QUERY_STRING}" />
</rule>
<rule name="?public_profile">
<match url="^/?@([_a-zA-Z0-9]+)$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="index.php?app=public&amp;mod=Profile&amp;act=index&amp;uid=$1&amp;%{QUERY_STRING}" />
</rule>
<rule name="?profile">
<match url="^/?@([0-9]+)/Profile$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="index.php?app=public&amp;mod=Profile&amp;act=data&amp;uid=$1&amp;%{QUERY_STRING}" />
</rule>
<rule name="?following">
<match url="^/?@([0-9]+)/following$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="index.php?app=public&amp;mod=Profile&amp;act=following&amp;uid=$1&amp;%{QUERY_STRING}" />
</rule>
<rule name="?follower">
<match url="^/?@([0-9]+)/follower$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="index.php?app=public&amp;mod=Profile&amp;act=follower&amp;uid=$1&amp;%{QUERY_STRING}" />
</rule>
<rule name="?welcome">
<match url="^/?welcome$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="index.php?app=public&amp;mod=Passport&amp;act=login&amp;%{QUERY_STRING}" />
</rule>
<rule name="?register">
<match url="^/?register$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="index.php?app=public&amp;mod=Register&amp;act=index&amp;%{QUERY_STRING}" />
</rule>
<rule name="?activate">
<match url="^/?activate/([0-9]+)$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="index.php?app=public&amp;mod=Register&amp;act=waitForActivation&amp;uid=$1&amp;%{QUERY_STRING}" />
</rule>
<rule name="?review">
<match url="^/?review/([0-9]+)$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="index.php?app=public&amp;mod=Register&amp;act=waitForAudit&amp;uid=$1&amp;%{QUERY_STRING}" />
</rule>
<rule name="upload_photo">
<match url="^/?register/upload_photo$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="index.php?app=public&amp;mod=Register&amp;act=step2&amp;%{QUERY_STRING}" />
</rule>
<rule name="work_information">
<match url="^/?register/work_information$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="index.php?app=public&amp;mod=Register&amp;act=step3&amp;%{QUERY_STRING}" />
</rule>
<rule name="follow_interesting">
<match url="^/?register/follow_interesting$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="index.php?app=public&amp;mod=Register&amp;act=step4&amp;%{QUERY_STRING}" />
</rule>
<rule name="?allfeed">
<match url="^/?allfeed$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="index.php?app=public&amp;mod=Index&amp;act=index&amp;type=all&amp;%{QUERY_STRING}" />
</rule>
<rule name="my_weibo">
<match url="^/?my/weibo$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="index.php?app=public&amp;mod=Index&amp;act=myFeed&amp;%{QUERY_STRING}" />
</rule>
<rule name="my_following">
<match url="^/?my/following$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="index.php?app=public&amp;mod=Index&amp;act=following&amp;%{QUERY_STRING}" />
</rule>
<rule name="my_follower">
<match url="^/?my/follower$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="index.php?app=public&amp;mod=Index&amp;act=follower&amp;%{QUERY_STRING}" />
</rule>
<rule name="my_favorite">
<match url="^/?my/favorite$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="index.php?app=public&amp;mod=Collection&amp;act=index&amp;%{QUERY_STRING}" />
</rule>
<rule name="atme">
<match url="^/?atme$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="index.php?app=public&amp;mod=Mention&amp;act=index&amp;%{QUERY_STRING}" />
</rule>
<rule name="?comment_receive">
<match url="^/?comment/receive$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="index.php?app=public&amp;mod=Comment&amp;act=index&amp;type=receive&amp;%{QUERY_STRING}" />
</rule>
<rule name="comment_send">
<match url="^/?comment/send$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="index.php?app=public&amp;mod=Comment&amp;act=index&amp;type=send&amp;%{QUERY_STRING}" />
</rule>
<rule name="?message">
<match url="^/?message$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="index.php?app=public&amp;mod=Message&amp;act=index&amp;%{QUERY_STRING}" />
</rule>
<rule name="?notify">
<match url="^/?notify$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="index.php?app=public&amp;mod=Message&amp;act=notify&amp;%{QUERY_STRING}" />
</rule>
<rule name="message">
<match url="^/?message/([0-9]+)/([0-9]+)$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="index.php?app=public&amp;mod=Message&amp;act=detail&amp;type=$1&amp;id=$2&amp;%{QUERY_STRING}" />
</rule>
<rule name="weibo">
<match url="^/?@([0-9]+)/weibo/([0-9]+)$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="index.php?app=public&amp;mod=Profile&amp;act=feed&amp;uid=$1&amp;feed_id=$2&amp;%{QUERY_STRING}" />
</rule>
<rule name="?setting">
<match url="^/?setting$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="index.php?app=public&amp;mod=Account&amp;act=index&amp;%{QUERY_STRING}" />
</rule>
<rule name="setting_domain">
<match url="^/?setting/domain$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="index.php?app=public&amp;mod=Account&amp;act=domain&amp;%{QUERY_STRING}" />
</rule>
<rule name="setting_verify">
<match url="^/?setting/verify$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="index.php?app=public&amp;mod=Account&amp;act=authenticate&amp;%{QUERY_STRING}" />
</rule>
<rule name="setting_privacy">
<match url="^/?setting/privacy$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="index.php?app=public&amp;mod=Account&amp;act=privacy&amp;%{QUERY_STRING}" />
</rule>
<rule name="setting_notify">
<match url="^/?setting/notify$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="index.php?app=public&amp;mod=Account&amp;act=notify&amp;%{QUERY_STRING}" />
</rule>
<rule name="setting_blacklist">
<match url="^/?setting/blacklist$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="index.php?app=public&amp;mod=Account&amp;act=blacklist&amp;%{QUERY_STRING}" />
</rule>
<rule name="setting_security">
<match url="^/?setting/security$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="index.php?app=public&amp;mod=Account&amp;act=security&amp;%{QUERY_STRING}" />
</rule>
<rule name="setting_bind">
<match url="^/?setting/bind$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="index.php?app=public&amp;mod=Account&amp;act=bind&amp;%{QUERY_STRING}" />
</rule>
<rule name="?weiba">
<match url="^/?weiba$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="index.php?app=weiba&amp;mod=Index&amp;act=index&amp;%{QUERY_STRING}" />
</rule>
<rule name="weiba_weibalist">
<match url="^/?weiba/weibalist$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="index.php?app=weiba&amp;mod=Index&amp;act=weibaList&amp;%{QUERY_STRING}" />
</rule>
<rule name="weiba_postlist">
<match url="^/?weiba/postlist$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="index.php?app=weiba&amp;mod=Index&amp;act=postList&amp;%{QUERY_STRING}" />
</rule>
<rule name="weiba_">
<match url="^/?weiba/([0-9]+)$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="index.php?app=weiba&amp;mod=Index&amp;act=detail&amp;weiba_id=$1&amp;%{QUERY_STRING}" />
</rule>
<rule name="weiba_digest">
<match url="^/?weiba/([0-9]+)/digest$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="index.php?app=weiba&amp;mod=Index&amp;act=detail&amp;weiba_id=$1&amp;type=digest&amp;%{QUERY_STRING}" />
</rule>
<rule name="weiba_post">
<match url="^/?weiba/([0-9]+)/post$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="index.php?app=weiba&amp;mod=Index&amp;act=post&amp;weiba_id=$1&amp;%{QUERY_STRING}" />
</rule>
<rule name="weiba_edit">
<match url="^/?weiba/([0-9]+)/edit$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="index.php?app=weiba&amp;mod=Index&amp;act=postEdit&amp;post_id=$1&amp;%{QUERY_STRING}" />
</rule>
<rule name="weiba_detail">
<match url="^/?weiba/([0-9]+)/detail$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="index.php?app=weiba&amp;mod=Index&amp;act=postDetail&amp;post_id=$1&amp;%{QUERY_STRING}" />
</rule>
<rule name="weiba_editreply">
<match url="^/?weiba/([0-9]+)/editreply$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="index.php?app=weiba&amp;mod=Index&amp;act=replyEdit&amp;reply_id=$1&amp;%{QUERY_STRING}" />
</rule>
<rule name="weiba_manage">
<match url="^/?weiba/([0-9]+)/manage$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="index.php?app=weiba&amp;mod=Manage&amp;act=index&amp;weiba_id=$1&amp;%{QUERY_STRING}" />
</rule>
<rule name="weiba_manage_member">
<match url="^/?weiba/([0-9]+)/manage/member$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="index.php?app=weiba&amp;mod=Manage&amp;act=member&amp;weiba_id=$1&amp;%{QUERY_STRING}" />
</rule>
<rule name="weiba_manage_notify">
<match url="^/?weiba/([0-9]+)/manage/notify$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="index.php?app=weiba&amp;mod=Manage&amp;act=notify&amp;weiba_id=$1&amp;%{QUERY_STRING}" />
</rule>
<rule name="weiba_manage_log">
<match url="^/?weiba/([0-9]+)/manage/log$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="index.php?app=weiba&amp;mod=Manage&amp;act=log&amp;weiba_id=$1&amp;%{QUERY_STRING}" />
</rule>
<rule name="?topics">
<match url="^/?topics/(.*)$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="index.php?app=public&amp;mod=Topic&amp;act=index&amp;domain=$1&amp;%{QUERY_STRING}" />
</rule>
</rules>
</rewrite>
<defaultDocument lockAttributes="enabled">
<files>
<clear />
<add value="index.html" />
<add value="index.htm" />
<add value="index.php" />
<add value="Default.htm" />
<add value="Default.asp" />
<add value="iisstart.htm" />
</files>
</defaultDocument>
</system.webServer>
</configuration>

[/php]

转载请注明来自微度网络,本文标题:《Thinksns iis7.0伪静态不能用的解决办法》

喜欢 0 发布评论
Top