懶人網(wǎng)址導(dǎo)航源碼v3.
以下是【浮舟】分享的內(nèi)容全文:
懶人網(wǎng)址導(dǎo)航源碼v3.

測試環(huán)境
寶塔Nginx -Tengine2.2.3的PHP5.6 + MySQL5.6.44
為防止調(diào)試錯誤,建議使用測試環(huán)境運行的php與mysql版本
首先用phpMyAdmin導(dǎo)入數(shù)據(jù)庫文件db/db.sql
如果導(dǎo)入不行,請直接復(fù)制數(shù)據(jù)庫內(nèi)容運行sql語句也可以
再修改config.php來進行數(shù)據(jù)庫配置
然后在服務(wù)器設(shè)置好偽靜態(tài)規(guī)則
訪問網(wǎng)站OK
后臺是:你的域名/admin/login.php 賬號:admin 密碼:qqqqqq
Nginx偽靜態(tài)規(guī)則
rewrite ^/index.html$ /index.php;
rewrite ^/about.html$ /about.php;
rewrite ^/search.html$ /search.php;
rewrite ^/ranking.html$ /ranking.php;
rewrite ^/wz.html$ /wzall.php;
rewrite ^/apply.html$ /apply.php;
rewrite ^/404.html$ /404.php;
rewrite ^/sort([1-9]+[0-9]*).html$ /sort.php?id=$1;
rewrite ^/sort([a-zA-Z]+).html$ /sort.php?alias=$1;
rewrite ^/site_([1-9]+[0-9]*).html$ /site.php?id=$1;
rewrite ^/wz([1-9]+[0-9]*).html$ /wz.php?id=$1;
rewrite ^/wzshow_([1-9]+[0-9]*).html$ /wzshow.php?id=$1;
Apache偽靜態(tài)規(guī)則
RewriteEngine On
rewritebase /
RewriteRule ^index./html /index/.php [L,NC]
RewriteRule ^about/.html about/.php [L,NC]
RewriteRule ^search/.html search/.php [L,NC]
RewriteRule ^ranking/.html ranking/.php [L,NC]
RewriteRule ^wz/.html wzall/.php [L,NC]
RewriteRule ^apply/.html apply/.php [L,NC]
RewriteRule ^404/.html 404/.php [L,NC]
RewriteRule ^sort([0-9]+)/.html sort/.php?id=$1 [L,NC]
RewriteRule ^sort([a-zA-Z]+)/.html sort/.php?alias=$1 [L,NC]
RewriteRule ^site_([0-9]+)/.html site/.php?id=$1 [L,NC]
RewriteRule ^wz([0-9]+)/.html wz/.php?id=$1 [L,NC]
RewriteRule ^wzshow_([0-9]+)/.html wzshow/.php?id=$1 [L,NC]
IIS偽靜態(tài)規(guī)則(請查看壓縮包中的版本簡單說明)
本站不存儲任何資源文件,敬請周知!
本網(wǎng)站采用 BY-NC-SA 協(xié)議進行授權(quán) 轉(zhuǎn)載請注明原文鏈接:懶人網(wǎng)址導(dǎo)航源碼v3.

侵權(quán)舉報/版權(quán)申訴



