<tt id="2ugkg"><rt id="2ugkg"></rt></tt>
<acronym id="2ugkg"><small id="2ugkg"></small></acronym>
<sup id="2ugkg"><small id="2ugkg"></small></sup>
<tr id="2ugkg"><optgroup id="2ugkg"></optgroup></tr>
間隔線
輕量級SEO友好型網站內容管理系統
首頁 >> 教程與幫助 >> 安裝使用 >> 詳細內容

永易搜CMS偽靜態規則

發布時間: 2018-04-03  點擊次數:次  作者:永易搜科技

第一種:web.config偽靜態文件(win2008服務器,IIS7.x以上版本)

<?xml version=”1.0″ encoding=”UTF-8″?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name=”r1″>
<match url=”^([a-zA-Z0-9/]+)/list_([0-9]+).html$” ignoreCase=”false” />
<action type=”Rewrite” url=”list.php?path={R:1}&amp;p={R:2}” appendQueryString=”false” />
</rule>
<rule name=”r2″>
<match url=”^([a-zA-Z0-9/]+)/([a-z0-9-_]+).html$” ignoreCase=”false” />
<action type=”Rewrite” url=”article.php?path={R:1}/{R:2}.html” appendQueryString=”false” />
</rule>
<rule name=”r3″>
<match url=”^(tag/.+)/$” ignoreCase=”false” />
<action type=”Rewrite” url=”list.php?path={R:1}” appendQueryString=”false” />
</rule>
<rule name=”r4″>
<match url=”^(s/)$” ignoreCase=”false” />
<action type=”Rewrite” url=”search.php” appendQueryString=”true” />
</rule>
<rule name=”r5″>
<match url=”^([a-zA-Z0-9/]+)/$” ignoreCase=”false” />
<conditions logicalGrouping=”MatchAll”>
<add input=”{R:1}” pattern=”^(admin|yysAdmin|yysadmin|s)” ignoreCase=”true” negate=”true” />
</conditions>
<action type=”Rewrite” url=”list.php?path={R:1}” appendQueryString=”false” />
</rule>
<rule name=”r6″>
<match url=”^(sitemap|rss).xml$” ignoreCase=”false” />
<action type=”Rewrite” url=”api/{R:1}.xml.php” />
</rule>
<rule name=”r7″>
<match url=”^([a-zA-Z0-9-]+).html$” ignoreCase=”false” />
<action type=”Rewrite” url=”topic.php?path={R:1}” />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>

第二種:.htaccess文件(常見于linux平臺,apache服務器)


<FilesMatch ".(bak|inc|lib|sh|tpl|lbi|dwt)$">
    order deny,allow
    deny from all
</FilesMatch>
RewriteEngine On
RewriteRule ^(s/)$ search.php [L]
RewriteRule ^([a-zA-Z0-9/]+)/([0-9]+).html$  article.php?path=$1/$2.html [L]
#欄目頁面排除
RewriteCond $1 !^(admin|yysAdmin|yysadmin|yelangbak|phpMyAdmin|s)
RewriteRule ^([a-zA-Z0-9/]+)/$  list.php?path=$1 [L]

RewriteRule ^([a-zA-Z0-9/]+)/list_([0-9]+).html$  list.php?path=$1&p=$2 [L]
RewriteRule ^(sitemap|rss).xml$ api/$1.xml.php [L]
RewriteRule ^([a-zA-Z0-9-]+).html$ topic.php?path=$1 [L]

當然,不用的服務器環境可能規則會有所變化,目前這兩種是比較流行的做法,其他偽靜態規則,可以根據這兩種規則進行轉譯。如果您不能操作,可以聯系我司客服協助處理。

本文作者:永易搜科技

十六年網站建設相關經驗
一站式為您提供網站相關服務

歡迎掃碼咨詢

上一篇:怎么修改永易搜CMS的后臺網址?

相關文章

国产情侣激情在线视频_日韩国产欧美精品综合二区_久久精品99国产囯产精_国产亚洲精品自在久久蜜tv
<tt id="2ugkg"><rt id="2ugkg"></rt></tt>
<acronym id="2ugkg"><small id="2ugkg"></small></acronym>
<sup id="2ugkg"><small id="2ugkg"></small></sup>
<tr id="2ugkg"><optgroup id="2ugkg"></optgroup></tr>