这里记录了船说(ShipSay)CMS小说站群程序 IIS/Apahce/Nginx伪静态大全,有需要的小伙伴可以带走,不客气!

船说cms Nginx伪静态

 

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;
}

船说cms IIS伪静态

<?xml version="1.0" encoding="UTF-8"?>
<rules>
<rule name="ShipSay SiteMap for ss_page">
<match url="^sitemap/sitemap_([0-9]+).xml$" ignoreCase="false" />
<action type="Rewrite" url="sitemap/ss_sitemap.php?page={R:1}" appendQueryString="false" />
</rule>
<rule name="ShipSay SiteMap for ss_index">
<match url="^sitemap/sitemap.xml$" ignoreCase="false" />
<action type="Rewrite" url="sitemap/ss_sitemap.php" />
</rule>
<rule name="ShipSay SiteMap for sm_page">
<match url="^sitemap/sm_sitemap_([0-9]+).xml$" ignoreCase="false" />
<action type="Rewrite" url="sitemap/sm_sitemap.php?page={R:1}" appendQueryString="false" />
</rule>
<rule name="ShipSay SiteMap for sm_index">
<match url="^sitemap/sm_sitemap.xml$" ignoreCase="false" />
<action type="Rewrite" url="sitemap/sm_sitemap.php" />
</rule>
<rule name="ShipSay CMS" stopProcessing="true">
<match url="^(.*)$" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="index.php" appendQueryString="true" />
</rule>
</rules>

船说cms APache不需要伪静态。

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注