적응형 터미널 게으른 웹사이트 탐색 소스 코드 v3.4,
이 버전은 원래 3.2 버전을 기반으로 일부 기능이 추가되어 복구되었습니다.
새 버전을 직접 사용하고 이전 버전은 향후에도 계속 업데이트되는 것을 권장합니다.
테스트 환경:
파고다 Nginx-Tengine2.2.3 PHP5.6+MySQL5.6.44
먼저 phpMyAdmin을 사용하여 데이터베이스 파일 db/db.sql을 가져옵니다.
그런 다음 config.php 데이터베이스 구성을 수정하십시오.
그런 다음 서버는 의사 정적 규칙을 설정합니다.
웹사이트 방문 확인
배경은 다음과 같습니다: 도메인 이름/admin/login.php 계정: 관리자 비밀번호: qqqqqq
Nginx 의사 정적 규칙
다시 쓰기^/index.html$/index.php;
다시 작성^/about.html$/about.php;
다시 작성^/search.html$/search.php;
다시 작성^/ranking.html$/ranking.php;
다시 작성^/wz.html$/wzall.php;
다시 작성^/apply.html$/apply.php;
다시 작성^/404.html$/404.php;
다시 쓰기^/sort([1-9]+[0-9]*).html$/sort.php?id=$1;
다시 쓰기^/sort([a-zA-Z]+).html$/sort.php?alias=$1;
다시 쓰기^/site_([1-9]+[0-9]*).html$/site.php?id=$1;
다시 쓰기^/wz([1-9]+[0-9]*).html$/wz.php?id=$1;
다시 작성^/wzshow_([1-9]+[0-9]*).html$/wzshow.php?id=$1;
Apache 의사 정적 규칙
RewriteEngineOn
재작성베이스/
RewriteRule^index.html/index.php[L,NC]
RewriteRule^about.htmlabout.php[L,NC]
RewriteRule^search.htmlsearch.php[L,NC]
RewriteRule^순위.html순위.php[L,NC]
RewriteRule^wz.htmlwzall.php[L,NC]
RewriteRule^apply.htmlapply.php[L,NC]
RewriteRule^404.html404.php[L,NC]
RewriteRule^sort([0-9]+).htmlsort.php?id=$1[L,NC]
RewriteRule^sort([a-zA-Z]+).htmlsort.php?alias=$1[L,NC]
RewriteRule^site_([0-9]+).htmlsite.php?id=$1[L,NC]
RewriteRule^wz([0-9]+).htmlwz.php?id=$1[L,NC]
RewriteRule^wzshow_([0-9]+).htmlwzshow.php?id=$1[L,NC]
IIS 의사 정적 규칙(압축 패키지의 간략한 버전 설명을 확인하세요)