rewrite^/sitemap/sitemap_([0-9]+).xml$/sitemap/ss_sitemap.php?page=$1;rewrite^/sitemap/sitemap.xml$/sitemap/ss_sitemap.php;rewrite^/sitemap/sm_sitemap_([0-9]+).xml$/sitemap/sm_sitemap.php?page=$1;rewrite^/sitemap/sm_sitemap.xml$/sitemap/sm_sitemap.php;if (!-d$request_filename){ set $rule_0 1$rule_0;}if (!-f$request_filename){ set $rule_0 2$rule_0;}if ($rule_0="21"){ rewrite ^/(.*)$ /index.php last;}
Apache 伪静态: 无需设置.
IIS伪静态规则
<?xmlversion="1.0"encoding="UTF-8"?><rules><rulename="ShipSay SiteMap for ss_page"><matchurl="^sitemap/sitemap_([0-9]+).xml$"ignoreCase="false"/><actiontype="Rewrite"url="sitemap/ss_sitemap.php?page={R:1}"appendQueryString="false"/></rule><rulename="ShipSay SiteMap for ss_index"><matchurl="^sitemap/sitemap.xml$"ignoreCase="false"/><actiontype="Rewrite"url="sitemap/ss_sitemap.php"/></rule><rulename="ShipSay SiteMap for sm_page"><matchurl="^sitemap/sm_sitemap_([0-9]+).xml$"ignoreCase="false"/><actiontype="Rewrite"url="sitemap/sm_sitemap.php?page={R:1}"appendQueryString="false"/></rule><rulename="ShipSay SiteMap for sm_index"><matchurl="^sitemap/sm_sitemap.xml$"ignoreCase="false"/><actiontype="Rewrite"url="sitemap/sm_sitemap.php"/></rule><rulename="ShipSay CMS"stopProcessing="true"><matchurl="^(.*)$"ignoreCase="false"/><conditionslogicalGrouping="MatchAll"><addinput="{REQUEST_FILENAME}"matchType="IsDirectory"ignoreCase="false"negate="true"/><addinput="{REQUEST_FILENAME}"matchType="IsFile"ignoreCase="false"negate="true"/></conditions><actiontype="Rewrite"url="index.php"appendQueryString="true"/></rule></rules>
if (!-d $request_filename){ set $rule_0 1$rule_0; } if (!-f $request_filename){ set $rule_0 2$rule_0; } if ($rule_0 = “21”){ rewrite ^/(.*)$ /index.php last; }