整合營銷服務商

          電腦端+手機端+微信端=數據同步管理

          免費咨詢熱線:

          從零開始搭建自己的博客系統-emlog(一)

          從零開始搭建自己的博客系統-emlog(一)

          很多人都想搭建自己的獨立博客系統,但不知道如何操作。本次教程就滿足下對建立網站不是很了解,又想搭建一個獨立博客的朋友,跟我一起一步一步安裝部署emlog系統來實現這個小理想。

          環境準備

          • 下載emlog

          EMLOG是every memory log的簡稱,即:點滴記憶,是國內使用php語言開發的一個輕量級開源博客系統,后臺管理符合國人的思維習慣,部署也很方便。

          官網下載地址:http://www.emlog.net/

          • 配置nginx+php環境

          按照官方安裝說明,推薦使用Linux+Apache主機,原因是Apache對emlog的偽靜態支持的更好一些。本文使用使用Nginx服務器來部署,Nginx的優點自行搜索,本文不做詳細介紹。

          文中的操作是在Linux Centos7系統上操作。

          1. 安裝nginx
             # yum install nginx    

          2. 安裝完成后,啟動nginx服務,

               # systemctl start nginx

          3. 在瀏覽器里訪問http://x.x.x.x(x.x.x.x為你服務器的ip地址),查看nginx是否安裝成功。端口默認是80。

          nginx 默認頁面

          看到上圖,表示成功安裝nginx。

          4. 安裝PHP和PHP-FPM

          • 更換yum源
                  # yum install epel-release
                  # rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
          • 安裝php及其php擴展


             # yum install php72w php72w-fpm php72w-gd php72w-mysql php72w-mbstring php72w-xml php72w-mcrypt  php72w-imap php72w-odbc php72w-pear
          • 啟動php-fpm服務
                 # systemctl start php-fpm

          5.配置nginx與php一起工作:

          打開nginx的主配置文件,添加以下代碼:

          location / {
                  root   /usr/share/nginx/html;
                     index  index.html index.htm index.php;
                  }
          location ~ \.php$ {
                     root           html;
                     fastcgi_pass   127.0.0.1:9000;
                     fastcgi_index  index.php;
                     fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
                     include        fastcgi_params;
          }

          然后重啟nginx服務:

          # systemctl restart nginx

          6.測試nginx與php是否正常:

          • 在nginx默認網站根目錄下創建一個index.php文件:
          # vi /usr/share/nginx/html/info.php
          • 文件內容如下
          <?php  
              phpinfo();  
          ?>; 
          • 在瀏覽器里訪問http://x.x.x.x/index.php(x.x.x.x為你服務器的ip地址),出現以下界面,說明php環境搭建成功。


          php環境成功頁面

          .什么是emlog采集文章

          EmLog作為一款靈活穩定且具備良好用戶體驗和高度擴展性的開源博客系統,其內置的文章采集功能利用自動化工具或插件,能有效地把其他平臺的優質內容精準導入到個人博客中。此舉不僅節約大量創作時間,還能為博客注入新元素,提升網站權威性和流量。

          在實施EmLog文章采集過程中,須遵循道德規范和法律法規,嚴禁未經授權轉載他人作品或侵犯其知識產權。應嚴格依照相關法律法規,尊重原創作者的勞動付出。

          2.emlog采集文章的必備條件

          為了成功采集到Emlog文章,我們需要使用高效率且實用的采集工具或者插件。市面上這類產品豐富多樣,如“熊掌號”、“文章采集器”等Emlog專用采集插件都可以方便快捷地獲取外部網站內容以及定制化編排和發布功能。

          除了采掘工具外,針對目標網站的防爬蟲策略亦須嚴謹考量。部分網站運用策略阻止爬蟲程序接入,以調整訪問速度及模式。因此,在使用emlog進行文章采集時,應充分了解目標站點的防爬蟲措施,并依此采取相應措施。

          3.emlog采集文章的操作步驟

          實際進行emlog采集文章時,一般可以分為以下幾個步驟:

          首先:根據實際需求挑選并安裝合適的數據采集設備。嚴格按照操作指南完成設備的安裝和參數調整。

          -步驟二:確立采集準則。在該插件中,針對擬采集的網址、關鍵詞等元素進行預設,并設定相應的采集過程參數。

          -第三階段:深度檢測與調試。正式采集工作實施前,必須確保系統經過充分的測試和調校,使所設采集規則精確無誤并可有效檢索所需信息。

          -第四步:實行數據收集。按照既定標準觸發采集任務,結束后核對成果,進行必要處置并發布。

          4.emlog采集文章注意事項

          在進行emlog采集文章時,需要注意以下幾點:

          恪守知識產權,嚴禁抄襲他作,注明原出處以示敬意。

          -務必注意抓取頻率和數量的限制。過度采集可能導致目標站點負荷過重,甚至引發惡意質疑。

          -建立日常的信息更新和保護機制。定期檢查并調適抓取參數,清除冗余數據,確保數據質量優良。

          -遵守法規,嚴控內容采集,確保不傳播違法有害觀點。

          5.emlog采集文章優化技巧

          提高EMLOG文章搜集性能應采取如下改進措施:

          -改進采集規程。借鑒目標網站特點,調整采集規則以提高協作效率與精確性。

          -采用獨特的文字檢測機制,避免重復采集,為數據庫提供嚴格的內容管理。

          -精細化圖像處理與優化,確保其有效鏈接并符合法規要求;適度壓縮以提高網頁加載速度。

          -深化SEO策略,重視對抓取內容的元標簽進行精細設定(如標題、關鍵詞、描述等),從而提升搜索引擎排名。

          6.emlog采集文章常見問題解決方法

          針對實踐過程中的問題,如內容提煉困難、字符編碼混亂及格式韻律等,以下的策略或能有所幫助。

          請確保網絡連接正常,如有異常,將無法訪問特定網址。

          確認抓取規則的設定無誤,確保其與目標網頁結構相符。

          請將插件升級至最新的版本;如無效,建議交換為其他插件。此類故障可能是因為舊插件或是插件間的沖突引發。

          7.emlog采集文章未來發展趨勢

          伴隨著互聯網科技和智能水平日新月異的發展,EMLOG文章的采集方式正逐步實現智能化、個性化。在不久的將來,借助AI技術推動的智能捕捉工具將會如同春筍般蓬勃生長,能夠更精確地發掘并呈現受眾感興趣的內容,繼而實現自動化的發布與推廣。

          由與偽靜態

          路由

          字面上解釋,路是線路,道路;由,緣由,指意,表示規則;所以意思就是按照什么規則,或者意義,被指派到什么地方去。

          所以路由是指線路分發,在后端web中一般都是指訪問url的映射規則,比如什么樣的url訪問,經過路由規則映射到什么模塊,什么控制器,什么方法,或者是類,或者是閉包,或者是別的,總之它是起分發的作用。

          偽靜態

          偽靜態字面上的意思就是偽造,靜態。

          (補充:偽靜態就是讓動態的URL地址看起來是靜態的地址,偽靜態是最終的目的,而不是技術。實現偽靜態有很多方式去實現,利用主機的URL重寫可以實現,利用程序本身的路由配置也可以實現,比如tp5和wordpress中可以自由的配置URL規則。前者需要有管理主機的權限,而后者比較靈活。但是要隱藏入口需要pathinfo或url重寫的支持)

          web2.0的世界里面,很多頁面都是動態的,比如很多 index.php/a/…… 或者 index.php?a=1&…… 這樣的,這樣的動態地址不怎么好看,對搜索引擎不友好,所需需要借助一些技術手段來將這些動態的url地址偽裝成靜態的url地址,這就是偽靜態。

          所以偽靜態指的是利用一些技術將動態地址轉換成靜態地址并可照常訪問的解決方案,并不是指某一種技術。

          那么來看下實現偽靜態需要用到哪些技術:

          1. web主機rewrite模塊(URL重寫,rewrite翻譯成中文為重寫,但很多人也常稱偽靜態)

          2. pathinfo (主機支持的一種技術,index.php/path,再利用url重寫可以隱藏入口)

          3. 程序的路由(可以美化,縮短url,變得更人性化,更有語義)

          補充:還有一個很重要的一點沒提到的就是【加后綴】,這個不算是什么技術,所以沒列到上面的技術列表中,加后綴可以在上面每一步都能完成,程序中就是控制url生成時加后綴就可以了。并且后綴有時候設計API時還很有用,必須后綴可以代表返回的數據格式(參考:REST設計風格)。

          分析:

          1. 第一種方案優點是功能強大(利用重寫模塊規則支持正則匹配等特性),可以實現任意的url重寫,但缺點是需要配置很多復雜的url重寫規則(多多返利程序就是利用這方式做偽靜態,如果開啟偽靜態,則程序會生成偽靜態規則的url,并且需要主機同時手動配置相應的url重寫規則),需要有主機管理的權限,如果是在主機上修改的配置則需要重啟web服務器(支持.htaccess則不需要重啟)。

          2. 這個需要web主機的支持,支持PATHINFO的主機可以支持 index.php/home/index/index 這樣的url訪問,這樣web語言中就可以獲得值(比如PHP程序可以得到 $_SERVER['PATH_INFO'] = '/home/index/index' )。根據這個特性,利用URL重寫,只需要一條簡單的URL重寫規則,將所有參數都重寫到入口文件的后面,這樣就能實現隱藏入口文件了,當然這只是隱藏入口文件,在thinkphp中如果主機不支持PATHINFO(比如低版本的nginx)那么使用兼容模式(?s=/m/c/a)也能模擬實現pathinfo從而實現隱藏入口文件index.php

          3. 可以說是程序里面的url重寫(上面提到的rewrite是主機的URL重寫),設計參考了主機的url重寫,所以路由規則也和主機url重寫規則差不多。優點是功能強大,規則配置靈活;缺點就是解析的性能問題(就這一個缺點,其它都是優點)。(WordPress自定義url其實就是用的自定義路由)

          總結:

          一般主機都能開啟rewrite模塊/功能支持URL重寫,這很關鍵,這樣實現隱藏入口文件了,這是第一步,再利用pathinfo(或者兼容模式),還有程序的路由,這樣配合起來就能夠實現簡潔明了的URL地址了,也就是實現我們所說的偽靜態。

          參見:偽靜態百科

          擴展知識

          原始的 index.php?m=home&c=index&a=index 實在是太難看了,所以即使不全偽靜態,不用路由,也最好拋棄這種原始的地址,因為有些接口開發中已經不支持使用這類url地址了,所以務必使用 pathinfo 的形式:index.php/home/index/index,在隱藏入口,再加個后綴 home/index/index.html 就完美了,如果是做API或者有特殊用途的話還可以帶上特定的后綴,比如看云、github倉庫克隆時代.git后綴的倉庫地址。

          想要了解【URL/PATHINFO/路由】的更多信息可以繼續閱讀:URL模式之分析

          其實如果你的入口是index.php,使用兼容模式也可以隱藏入口的,直接?s=/m/c/a,?m=home&c=index&a=index 因為大多主機默認配置的有默認訪問文件/入口。

          下面分析nginx的部分配置:

          主配置:/usr/local/nginx/conf/nginx.conf

          user www www;
          worker_processes auto;
          error_log /data/wwwlogs/error_nginx.log crit;
          pid /var/run/nginx.pid;
          worker_rlimit_nofile 51200;
          events {
           use epoll;
           worker_connections 51200;
           multi_accept on;
           }
          http {
           include mime.types;
           default_type application/octet-stream;
           server_names_hash_bucket_size 128;
           client_header_buffer_size 32k;
           large_client_header_buffers 4 32k;
           client_max_body_size 1024m;
           sendfile on;
           tcp_nopush on;
           keepalive_timeout 120;
           server_tokens off;
           tcp_nodelay on;
           fastcgi_connect_timeout 300;
           fastcgi_send_timeout 300;
           fastcgi_read_timeout 300;
           fastcgi_buffer_size 64k;
           fastcgi_buffers 4 64k;
           fastcgi_busy_buffers_size 128k;
           fastcgi_temp_file_write_size 128k;
           #Gzip Compression
           gzip on;
           gzip_buffers 16 8k;
           gzip_comp_level 6;
           gzip_http_version 1.1;
           gzip_min_length 256;
           gzip_proxied any;
           gzip_vary on;
           gzip_types
           text/xml application/xml application/atom+xml application/rss+xml application/xhtml+xml image/svg+xml
           text/javascript application/javascript application/x-javascript
           text/x-json application/json application/x-web-app-manifest+json
           text/css text/plain text/x-component
           font/opentype application/x-font-ttf application/vnd.ms-fontobject
           image/x-icon;
           gzip_disable "MSIE [1-6]\.(?!.*SV1)";
           #If you have a lot of static files to serve through Nginx then caching of the files' metadata (not the actual files' contents) can save some latency.
           open_file_cache max=1000 inactive=20s;
           open_file_cache_valid 30s;
           open_file_cache_min_uses 2;
           open_file_cache_errors on;
          ######################## default ############################
           server {
           listen 80;
           server_name _;
           access_log /data/wwwlogs/access_nginx.log combined;
           root /data/wwwroot/default;
           index index.html index.htm index.php;
           location /nginx_status {
           stub_status on;
           access_log off;
           allow 127.0.0.1;
           deny all;
           }
           location ~ [^/]\.php(/|$) {
           #fastcgi_pass remote_php_ip:9000;
           fastcgi_pass unix:/dev/shm/php-cgi.sock;
           fastcgi_index index.php;
           include fastcgi.conf;
           }
           location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|flv|ico)$ {
           expires 30d;
           access_log off;
           }
           location ~ .*\.(js|css)?$ {
           expires 7d;
           access_log off;
           }
           }
          ########################## vhost #############################
           include vhost/*.conf;
          }

          每一個虛擬主機在虛擬主機配置目錄都有一個對應的配置文件

          [root@iZuf6fvttmu9vkdbnencgpZ vhost]# lsdingtalk.uogo8.com.conf lipin.uogo8.com.conf tv.uogo8.com.confgj.uogo8.com.conf test.uogo8.com.conf www.uogo8.com.conf

          虛擬主機配置文件:/usr/local/nginx/conf/vhost/www.uogo8.com.conf

          server {listen 80;server_name www.uogo8.com uogo8.com;access_log /data/wwwlogs/www.uogo8.com_nginx.log combined;index index.html index.htm index.php;include /usr/local/nginx/conf/rewrite/www.uogo8.com.conf;root /data/wwwroot/www.uogo8.com;if ($host !=www.uogo8.com) { rewrite ^/(.*)$ $scheme://www.uogo8.com/$1 permanent;
           }location ~ \.php { #fastcgi_pass remote_php_ip:9000;
           fastcgi_pass unix:/dev/shm/php-cgi.sock; fastcgi_index index.php; include fastcgi_params; set $real_script_name $fastcgi_script_name; if ($fastcgi_script_name ~ "^(.+?\.php)(/.+)$") { set $real_script_name $1; #set $path_info $2;
           } fastcgi_param SCRIPT_FILENAME $document_root$real_script_name; fastcgi_param SCRIPT_NAME $real_script_name; #fastcgi_param PATH_INFO $path_info;
           }location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|flv|ico)$ { expires 30d; access_log off;
           }location ~ .*\.(js|css)?$ { expires 7d; access_log off;
           }
          }

          偽靜態單獨放一個目錄,需要時被虛擬主機配置文件引入,這樣方便管理

          [root@iZuf6fvttmu9vkdbnencgpZ vhost]# cd ../rewrite/
          [root@iZuf6fvttmu9vkdbnencgpZ rewrite]# lsnone.conf thinkphp.conf www.uogo8.com.conf

          偽靜態是一種效果,準確的說這是主機的URL重寫規則/配置文件。但一般大家也習慣性稱之為偽靜態配置、偽靜態文件,開啟偽靜態,偽靜態模塊,偽靜態功能了,其實偽靜態只是最終實現的效果。

          thinkphp程序的偽靜態配置文件:/usr/local/nginx/conf/rewrite/thinkphp.conf

          location / { if (!-e $request_filename) { # 不支持pathinfo,那就使用url重寫,重寫成兼容模式,來達到隱藏入口的效果
           rewrite ^(.*)$ /index.php?s=$1 last; break;
           }
          }

          thinkphp偽靜態配置文件.htaccess(Apache環境)

          <IfModule mod_rewrite.c>
           Options +FollowSymlinks -Multiviews RewriteEngine On
           RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f # 直接利用url重寫,重寫成 pathinfo 模式
           RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]</IfModule>

          uogo8的偽靜態配置文件:/usr/local/nginx/conf/rewrite/www.uogo8.com.conf

          location / { if (!-e $request_filename) {
           rewrite ^/(.*)$ /index.php/$1 last; break;
           }
          }
          #######################################################################
          # OneinStack for CentOS/RadHat 5+ Debian 6+ and Ubuntu 12+ #
          # For more information please visit https://oneinstack.com ########################################################################
          Your domain: www.uogo8.com
          Virtualhost conf: /usr/local/nginx/conf/vhost/www.uogo8.com.conf
          Directory of: /data/wwwroot/www.uogo8.com
          Rewrite rule: /usr/local/nginx/conf/rewrite/thinkphp.conf

          相關閱讀:

          • nginx下支持PATH_INFO詳解

          • nginx支持.htaccess文件實現偽靜態的方法分享

          • php官方手冊 隱藏 PHP

          • WordPress 偽靜態規則(IIS/Apache/Nginx)

          • Wordpress固定鏈接偽靜態的設置方法

          • WordPress 查看網站的所有偽靜態 Rewrite 規則

            >[info] WordPress 本身只需要一條服務器重寫規則就能讓固定鏈接正常功能,這條規則就是把所有不存在的文件請求指向 index.php,然后它再通過 PHP 匹配請求的網址,得出最終的請求結果,注入到主循環之中。

          • v8偽靜態規則在哪,如何開啟偽靜態功能

            >[info] 這個比WordPress的復雜一點,利用了重寫,程序根據網站后臺設置中是否開啟偽靜態,來決定生成什么樣的URL,并沒有用到pathinfo和路由。這樣的缺點就是每次都要手動配置主機的偽靜態規則,且規則多容易出錯。

          其他應當注意的問題

          任何時候要考慮兼容性,并不是所有環境都支持PATH_INFO的,比如下面的代碼就能體現出來這個思想:

          $input->SetNotify_url(SITE_URL . '/index.php/Home/Payment/notifyUrl/pay_code/weixin');

          這個代碼在Apache上沒有問題,但是在Nginx上面就出問題了,即使Nginx設置了這樣的URL重寫:

          location / { if (!-e $request_filename) {
           rewrite ^(.*)$ /index.php?s=$1 last; break;
           }
          }

          也沒用有,Nginx不支持PATH_INFO,并且也不滿足上面的URL重寫規則(如果文件不存在就映射到s參數上面),所以上面的代碼可以說沒有兼容性。

          上面的代碼只要改成

          $input->SetNotify_url(SITE_URL . '/Home/Payment/notifyUrl/pay_code/weixin');

          就好了,就不會有問題了(在不支持PATH_INFO的Nginx上面滿足URL重寫規則),這樣代碼在不同環境下面都能以期望的結果運行,就具有兼容性了。


          擴展

          附:

          多多返利程序的Nginx的URL重寫規則:nginx.txt

          location / {
          rewrite /mall/list-(.*)-(\d+).html$ /index.php?mod=mall&act=list&cid=$1&page=$2 last;
          rewrite /mall/list-(.*).html$ /index.php?mod=mall&act=list&cid=$1 last;
          rewrite /mall/list.html$ /index.php?mod=mall&act=list last;
          rewrite /mall/view-(\d+)-(.*)-(\d+).html$ /index.php?mod=mall&act=view&id=$1&do=$2&page=$3 last;
          rewrite /mall/view-(\d+)-(.*).html$ /index.php?mod=mall&act=view&id=$1&do=$2 last;
          rewrite /mall/view-(\d+).html$ /index.php?mod=mall&act=view&id=$1 last;
          rewrite /mall/goods-(.*)-(\d+)-(\d+)-(\d+)-(\d+)-(.*)-(\d+).html$ /index.php?mod=mall&act=goods&merchantId=$1&order=$2&start_price=$3&end_price=$4&list=$5&q=$6&page=$7 last;
          rewrite /mall/goods-(.*).html$ /index.php?mod=mall&act=goods&q=$1 last;
          rewrite /mall/goods.html$ /index.php?mod=mall&act=goods last;
          rewrite /article/index.html$ /index.php?mod=article&act=index last;
          rewrite /article/$ /index.php?mod=article&act=index last;
          rewrite /article$ /index.php?mod=article&act=index last;
          rewrite /article/list-(.*)-(\d+).html$ /index.php?mod=article&act=list&cid=$1&page=$2 last;
          rewrite /article/list-(.*).html$ /index.php?mod=article&act=list&cid=$1 last;
          rewrite /article/list.html$ /index.php?mod=article&act=list last;
          rewrite /article/view-(\d+).html$ /index.php?mod=article&act=view&id=$1 last;
          rewrite /huodong/list-(\d+)-(\d+).html$ /index.php?mod=huodong&act=list&cid=$1&page=$2 last;
          rewrite /huodong/list-(\d+).html$ /index.php?mod=huodong&act=list&page=$1 last;
          rewrite /huodong/list.html$ /index.php?mod=huodong&act=list last;
          rewrite /huodong/view-(\d+).html$ /index.php?mod=huodong&act=view&id=$1 last;
          rewrite /huan/list-(\d+)-(\d+).html$ /index.php?mod=huan&act=list&cid=$1&page=$2 last;
          rewrite /huan/list-(\d+).html$ /index.php?mod=huan&act=list&cid=$1 last;
          rewrite /huan/list-(.*).html$ /index.php?mod=huan&act=list&cid=$1 last;
          rewrite /huan/list.html$ /index.php?mod=huan&act=list last;
          rewrite /huan/view-(\d+).html$ /index.php?mod=huan&act=view&id=$1 last;
          rewrite /tao/index.html$ /index.php?mod=tao&act=index last;
          rewrite /tao/$ /index.php?mod=tao&act=index last;
          rewrite /tao$ /index.php?mod=tao&act=index last;
          rewrite /tao/list-(.*)-(.*)-(\d+)-(\d+).html$ /index.php?mod=tao&act=list&cid=$1&q=$2&list=$3&page=$4 last;
          rewrite /tao/list-(.*)-(\d+).html$ /index.php?mod=tao&act=list&cid=$1&page=$2 last;
          rewrite /tao/list-0-(.*).html$ /index.php?mod=tao&act=list&cid=0&q=$1 last;
          rewrite /tao/list-(.*).html$ /index.php?mod=tao&act=list&cid=$1 last;
          rewrite /tao/list.html$ /index.php?mod=tao&act=list last;
          rewrite /tao/view-(.*)-(.*)-(.*).html$ /index.php?mod=tao&act=view&iid=$1&promotion_price=$2&promotion_endtime=$3 last;
          rewrite /tao/view-(.*).html$ /index.php?mod=tao&act=view&iid=$1 last;
          rewrite /tao/shop-(.*)-(\d+).html$ /index.php?mod=tao&act=shop&nick=$1&list=$2 last;
          rewrite /tao/shop-(.*).html$ /index.php?mod=tao&act=shop&nick=$1 last;
          rewrite /tao/zhe-(.*)-(\d+)-(\d+).html$ /index.php?mod=tao&act=zhe&q=$1&cid=$2&page=$3 last;
          rewrite /tao/zhe-(.*).html$ /index.php?mod=tao&act=zhe&q=$1 last;
          rewrite /tao/zhe.html$ /index.php?mod=tao&act=zhe last;
          rewrite /shop/list-(\d+)-(\d+)-(\d+)-(\d+)-(.*)-(\d+).html$ /index.php?mod=shop&act=list&cid=$1&start_level=$2&end_level=$3&type=$4&nick=$5&page=$6 last;
          rewrite /shop/list-(.*)-(\d+).html$ /index.php?mod=shop&act=list&cid=$1&page=$2 last;
          rewrite /shop/list-(.*).html$ /index.php?mod=shop&act=list&cid=$1 last;
          rewrite /shop/list.html$ /index.php?mod=shop&act=list last;
          rewrite /baobei/list-0-(.*)-(\d+).html$ /index.php?mod=baobei&act=list&cid=0&q=$1&page=$2 last;
          rewrite /baobei/list-0-(.*).html$ /index.php?mod=baobei&act=list&cid=0&q=$1 last;
          rewrite /baobei/list-(.*)-(\d+)-(\d+).html$ /index.php?mod=baobei&act=list&sort=$1&cid=$2&page=$3 last;
          rewrite /baobei/list-(.*)-(\d+).html$ /index.php?mod=baobei&act=list&cid=$1&page=$2 last;
          rewrite /baobei/list-(.*).html$ /index.php?mod=baobei&act=list&cid=$1 last;
          rewrite /baobei/list.html$ /index.php?mod=baobei&act=list last;
          rewrite /baobei/user-(\d+)-(\d+)-(\d+).html$ /index.php?mod=baobei&act=user&uid=$1&xs=$2&page=$3 last;
          rewrite /baobei/user-(\d+)-(\d+).html$ /index.php?mod=baobei&act=user&uid=$1&xs=$2 last;
          rewrite /baobei/user-(\d+).html$ /index.php?mod=baobei&act=user&uid=$1 last;
          rewrite /baobei/view-(\d+).html$ /index.php?mod=baobei&act=view&id=$1 last;
          rewrite /tuan/list-(\d+)-(\d+)-(\d+)-(.*)-(\d+).html$ /index.php?mod=tuan&act=list&cid=$1&mall_id=$2&city_id=$3&sort=$4&page=$5 last;
          rewrite /tuan/list-(\d+)-(\d+)-(.*).html$ /index.php?mod=tuan&act=list&cid=$1&city_id=$2&sort=$3 last;
          rewrite /tuan/list-(\d+)-(\d+).html$ /index.php?mod=tuan&act=list&cid=$1&page=$2 last;
          rewrite /tuan/list-(.*)-(\d+).html$ /index.php?mod=tuan&act=list&q=$1&page=$2 last;
          rewrite /tuan/list-(\d+).html$ /index.php?mod=tuan&act=list&cid=$1 last;
          rewrite /tuan/list-(.*).html$ /index.php?mod=tuan&act=list&q=$1 last;
          rewrite /tuan/list.html$ /index.php?mod=tuan&act=list last;
          rewrite /tuan/view-(\d+).html$ /index.php?mod=tuan&act=view&id=$1 last;
          rewrite /help/index-(\d+).html$ /index.php?mod=help&act=index&cid=$1 last;
          rewrite /help/index.html$ /index.php?mod=help&act=index last;
          rewrite /help/$ /index.php?mod=help&act=index last;
          rewrite /help$ /index.php?mod=help&act=index last;
          rewrite /about/index-(\d+).html$ /index.php?mod=about&act=index&id=$1 last;
          rewrite /about/index.html$ /index.php?mod=about&act=index last;
          rewrite /about/$ /index.php?mod=about&act=index last;
          rewrite /about$ /index.php?mod=about&act=index last;
          rewrite /paipai/index.html$ /index.php?mod=paipai&act=index last;
          rewrite /paipai/$ /index.php?mod=paipai&act=index last;
          rewrite /paipai$ /index.php?mod=paipai&act=index last;
          rewrite /paipai/list-(\d+)-(.*)-(\d+)-(.*)-(\d+)-(\d+)-(\d+)-(\d+).html$ /index.php?mod=paipai&act=list&cid=$1&q=$2&sort=$3&property=$4&begPrice=$5&endPrice=$6&list=$7&page=$8 last;
          rewrite /paipai/list-(.*).html$ /index.php?mod=paipai&act=list&q=$1 last;
          rewrite /paipai/list.html$ /index.php?mod=paipai&act=list last;
          rewrite /tbimg/(.*).jpg$ /comm/showpic.php?pic=$1 last;
          rewrite /sitemap/index.html$ /index.php?mod=sitemap&act=index last;
          rewrite /index.html$ /index.php last;
          }

          ThinkPHP5路由全程圖解 · 看云


          主站蜘蛛池模板: 亚洲高清一区二区三区 | 亚洲一区二区三区在线网站| 国产亚洲一区二区手机在线观看| 日韩国产免费一区二区三区| 亚洲一区视频在线播放| 人妻互换精品一区二区| 亚洲AV无码一区二区三区在线| 亚洲成a人一区二区三区| 精品国产区一区二区三区在线观看 | 免费高清在线影片一区| 少妇精品久久久一区二区三区| 99精品久久精品一区二区| 精品一区二区三区无码免费直播 | 久久无码人妻精品一区二区三区| 精品国产免费观看一区| 亚洲av乱码一区二区三区按摩| 亚洲天堂一区二区三区四区| 另类免费视频一区二区在线观看| 国产婷婷一区二区三区| 日本丰满少妇一区二区三区| 波多野结衣中文一区二区免费| 日本精品无码一区二区三区久久久| 麻豆亚洲av熟女国产一区二| 麻豆亚洲av熟女国产一区二 | 国产一区二区在线视频播放| 无码一区二区三区免费视频| 国产一区二区三区小说| 国产成人精品一区二区A片带套| 色窝窝无码一区二区三区| 无码人妻精品一区二区三| 亚洲一区精品中文字幕| 精品亚洲AV无码一区二区| 日本一区二区视频| 国产情侣一区二区| 午夜肉伦伦影院久久精品免费看国产一区二区三区 | 美女福利视频一区| 国产大秀视频在线一区二区| 亚洲av无码片vr一区二区三区| 精品国产AV无码一区二区三区| 国产传媒一区二区三区呀| 精品福利一区二区三区|