船说(ShipSay)CMS小说站群程序 IIS/Apahce/Nginx伪静态大全

这里记录了船说(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不需要伪静态。

原创文章,作者:Tony,如若转载,请注明出处:https://www.xxside.com/4157.html

思德心语,壹群:799239814

发表评论

登录后才能评论