亚洲精品视频一区二区,一级毛片在线观看视频,久久国产a,狠狠狠色丁香婷婷综合久久五月,天天做天天欢摸夜夜摸狠狠摸

在線(xiàn)客服與您一對一交流

apache的.htaccess轉換為nginx偽靜態(tài)文件conf的方法

在線(xiàn)轉換地址 : https://tool.lu/htaccess2nginx

以下幾點(diǎn)需要注意:

1,RewriteRule需要全部替換為rewrite。
2,替換掉所有的\,conf不需要轉義符。
3,conf文件的規則開(kāi)頭需要加上/。
4, 所有的[L] [QSA,L]等需要替換為 last。
5,每一行必須以;結尾。
上面5點(diǎn)實(shí)例
RewriteRule ^category$ index\.php [L]需要更換為rewrite ^/category$ /index.php last;
6,對于包含|或者}等特殊字符的規則,必須用""引起來(lái),不然會(huì )當作規則的終止符號。
rewrite ^/daily-([0-9]{4}-[0-9]{2}-[0-9]{2}).html$ /daily.php?day=$1 last;,需要用雙引號括起來(lái)rewrite "^/daily-([0-9]{4}-[0-9]{2}-[0-9]{2}).html$" /daily.php?day=$1 last;,不然會(huì )出錯。

apache的.htaccess

RewriteRule ^index\.html$    index\.php [L]

RewriteRule ^category$      index\.php [L]

# access any object by its numeric identifier

RewriteRule ^feed-c([0-9]+)\.xml$       feed\.php\?cat=$1 [L]

RewriteRule ^feed-b([0-9]+)\.xml$       feed\.php\?brand=$1 [L]

RewriteRule ^feed-type([^-]+)\.xml$       feed\.php\?type=$1 [L]

RewriteRule ^feed\.xml$                 feed\.php [L]

RewriteRule ^buyer-show\.html$                 buyer_show\.php [L]

RewriteRule ^blogger\.html$                 ads\.php [L]

RewriteRule ^(.*)-c([0-9]+)-under-([a-z0-9]+)-dollar.html$ category\.php\?id=$2&utxt=$3  [QSA,L]

RewriteRule ^(.*)-c([0-9]+)$ category\.php\?id=$2  [QSA,L]

RewriteRule ^(on-sale|new-arrival|best-items|feature-product|clearance|under-5|under-10|100-in-stock)-([0-9]+)-([0-9]+)-([0-9.]+)-([0-9.]+)-([a-z]+)-([a-z_]+)-([A-Z]+)-([0-9]{1})\.html$ special\.php\?act=$1&cat_id=$2&page=$3&price_min=$4&price_max=$5&display=$6&sort=$7&order=$8&s=$9 [QSA,L]

RewriteRule ^daily-([0-9]{4}-[0-9]{2}-[0-9]{2})\.html$ daily\.php\?day=$1 [QSA,L]

轉換后為:

rewrite ^/index.html$    /index.php last;

rewrite ^/category$      /index.php last;

rewrite ^/((?!guanzhou020|js|themes|print|facebook|edm).)*/(.*) /index.php last;

rewrite ^/feed-c([0-9]+).xml$       /feed.php?cat=$1 last;

rewrite ^/feed-b([0-9]+).xml$       /feed.php?brand=$1 last;

rewrite ^/feed-type([^-]+).xml$       /feed.php?type=$1 last;

rewrite ^/feed.xml$                 /feed.php last;

rewrite ^/buyer-show.html$                 /buyer_show.php last;

rewrite ^/blogger.html$                 /ads.php last;

rewrite ^/(.*)-c([0-9]+)-under-([a-z0-9]+)-dollar.html$ /category.php?id=$2&utxt=$3  last;

rewrite ^/(.*)-c([0-9]+)$ /category.php?id=$2  last;

rewrite "^/(on-sale|new-arrival|best-items|feature-product|clearance|under-5|under-10|100-in-stock)-([0-9]+)-([0-9]+)-([0-9.]+)-([0-9.]+)-([a-z]+)-([a-z_]+)-([A-Z]+)-([0-9]{1}).html$" /special.php?act=$1&cat_id=$2&page=$3&price_min=$4&price_max=$5&display=$6&sort=$7&order=$8&s=$9 last;

rewrite "^/daily-([0-9]{4}-[0-9]{2}-[0-9]{2}).html$" /daily.php?day=$1 last;
 

#301

if ($http_host = it2168.com) {

        rewrite  ^(.*)$  http://www.ccdyk.cn$1 permanent;

}

或者

server {

listen 80;

server_name it2168.com;

return 301 http://www.ccdyk.cn$request_uri;

}

//以下是301轉向設置

server {

server_name it2168.com;

rewrite ^/(.*)$ http://www.ccdyk.cn$1 permanent;

}

#301-START

if ($host ~ '^it2168.com'){

return 301 http://www.ccdyk.cn$request_uri;

}

#301-END

找到:網(wǎng)站=>配置文件

    if ($host ~ '^it2168.ccom'){

            return 301 https://www.it2168.ccom$request_uri;

    }

一、404配置

找到:網(wǎng)站=>配置文件

    error_page 404 /404.html;

    location = /404.html {

    root /www/server/nginx/html;

    }

然后在:root /www/server/nginx/html  配置404.html即可生效;

     

相關(guān)文章:

  • 帝國CMS是什么程序 帝國CMS是一套開(kāi)源的靜態(tài)頁(yè)面程序,憑借超高的擴展性,很多知名的新聞?wù)军c(diǎn)、行業(yè)站點(diǎn)都是應用的帝國CMS后端。因為帝國CMS和dedecms一樣都是生成靜態(tài)頁(yè)面的,所以非常利于...

  • 域名解析DNS分為顯性URL和隱形URL,顯性URL和隱形URL有什么區別?隱形URL和顯性URL哪個(gè)更有利于SEO?顯性URL相當于域名了302重定向,隱形URL使用iframe框架技術(shù)隱藏真實(shí)目標地址,顯性URL更有利于...

  • 在常見(jiàn)的CMS系統中,我對dedecms算是比較熟悉的,自己網(wǎng)站用的也是這個(gè)系統。系統功能強大使用靈活,相信這也是它受到大多數中小站長(cháng)青睞的原因。 再好的系統也有照顧不周的地方,很多站...

  • 這篇文章主要為大家詳細介紹了dedecms后臺增加php導出excel功能實(shí)現辦法,具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下,有需要的朋友可以收藏方便以后借鑒。 不少朋友希望織夢(mèng)的后臺...

  • 第一次使用的插件是 pdfobject.js 百度網(wǎng)盤(pán)下載地址:http://pan.baidu.com/s/1kUPhYdT 加載 script src=/style/js/pdfobject.js /script script type=text/javascript window.onload = function (){ var success = new PDFObject({ url: pdf文件地...

  • 網(wǎng)上有一種方法是copy+unlink來(lái)移動(dòng)文件,但是遇到大文件時(shí)會(huì )消耗大量時(shí)間,對性能不怎么友好,可以使用rename()來(lái)移動(dòng)文件,速度非???關(guān)于rename()函數 bool rename ( string $oldname , string $newname...

  • 基于我們公司可選的幾種推廣方式: 一、關(guān)鍵詞優(yōu)化排名推廣(推薦) 指定關(guān)鍵詞推廣,按天付費,推廣我們業(yè)務(wù)中最重要的一些關(guān)鍵詞,達到百度首頁(yè)才收費,大概一個(gè)關(guān)鍵詞10元/天左右。...

  • 插件介紹 wordpress程序網(wǎng)站在發(fā)布文章時(shí)可以給每一片文章添加與之相關(guān)的TAG標簽,對于TAG標簽可以生成很多頁(yè)面,增加搜索引擎對內容的抓取量。 WP Auto Keywords插件就是一款能自動(dòng)給文章添加...

  • 5.7 生成列表頁(yè) 改動(dòng) include/arc.listview.class.php 1.先設置 關(guān)閉副欄目(在系統----系統基本參數性能選項里) 2.一般網(wǎng)站不需要 欄目交叉 交叉 所以 找到94行注釋掉: //獲得交叉欄目ID /*if($this-Type...

  • 使用preg_replace將刪除所有空白(包括制表符等) $string = user na me $string = preg_replace(/\s+/, , $string); echo $string; // username preg_replace(/\s/u, ,$string) u (PCRE8) 此修正符打開(kāi)一個(gè)與perl不兼容的附加功能. 模式...

  • 公司:西安蟠龍網(wǎng)絡(luò )科技有限公司
  • 聯(lián)系人:張經(jīng)理
  • 手機/微信:
  • Q Q: 點(diǎn)擊這里給我發(fā)消息
  • 地址:西安市雁塔區唐延南路11號逸翠園i都會(huì )
亚洲精品视频一区二区,一级毛片在线观看视频,久久国产a,狠狠狠色丁香婷婷综合久久五月,天天做天天欢摸夜夜摸狠狠摸