destoon 安裝在二級(jí)目錄要怎么設(shè)置偽靜態(tài),因?yàn)榇蠹叶贾?em>偽靜態(tài)比動(dòng)態(tài)網(wǎng)址更能吸引蜘蛛,這里就分享下nginx環(huán)境下Destoon安裝在二級(jí)目錄下的偽靜態(tài)規(guī)則:
注:/b2b/為二級(jí)目錄
rewrite ^/b2b/(.*)\.(asp|aspx|asa|asax|dll|jsp|cgi|fcgi|pl)(.*)$ /404.php last;rewrite ^/b2b/(.*)/(admin|cache|editor|file|include|lang|module|skin|template)/(.*)\.php(.*)$ /404.php last;
rewrite ^/b2b/(.*)-htm-(.*)$ /b2b/$1.php?$2 last;
rewrite ^/b2b/(.*)/show-([0-9]+)([\-])?([0-9]+)?\.html$ /b2b/$1/show.php?itemid=$2&page=$4 last;
rewrite ^/b2b/(.*)/list-([0-9]+)([\-])?([0-9]+)?\.html$ /b2b/$1/list.php?catid=$2&page=$4 last;
rewrite ^/b2b/(.*)/show/([0-9]+)/([0-9]+)?([/])?$ /b2b/$1/show.php?itemid=$2&page=$3 last;
rewrite ^/b2b/(.*)/list/([0-9]+)/([0-9]+)?([/])?$ /b2b/$1/list.php?catid=$2&page=$3 last;
rewrite ^/b2b/(.*)/([A-za-z0-9_\-]+)-c([0-9]+)-([0-9]+)\.html$ /b2b/$1/list.php?catid=$3&page=$4 last;
rewrite ^/b2b/(.*)/([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)\.html$ /b2b/$1/index.php?moduleid=$2&catid=$3&itemid=$4&page=$5 last;
rewrite ^/b2b(.*)/([a-z]+)/(.*)\.shtml$ /b2b/$1/$2/index.php?rewrite=$3 last;
rewrite ^/b2b/(qiye_)([a-z0-9_\-]+)/([a-z]+)/(.*)\.html$ /b2b/index.php?homepage=$2&file=$3&rewrite=$4 last;
rewrite ^/b2b/(qiye_)([a-z0-9_\-]+)/([a-z]+)([/])?$ /b2b/index.php?homepage=$2&file=$3 last;
rewrite ^/b2b/(qiye_)([a-z0-9_\-]+)([/])?$ /b2b/index.php?homepage=$2 last;
if (!-e $request_filename) {
return 404;
}