nginx的內頁跳轉總結

2022-02-15 08:52:22 字數 1341 閱讀 6981

以下是內頁跳轉的要求:

www.5i1show.com/jiank/meir/1-0-0-0跳轉到www.5i1show.com/jiank/meir/1-0-0-0/

在配置檔案裡加入5i1show.com.conf

rewrite ^/invest/edai/(\d\-\d\-\d\-\d)$  /invest/edai/$1/       permanent;

如果是第一頁跳到主頁面也可以這樣

rewrite ^/invest/dai/(\d\-\d\-\d\-\d\-p\d)$  /invest/dai/$1/     permanent;

www.5i1show.com/invest/welcome跳轉到www.5i1show.com/invest/

rewrite ^/invest/welcome /invest/ permanent;

www.5i1show.com/tools跳轉到www.5i1show.com/tools/

rewrite ^/tools$ /tools/ permanent;

www.5i1show.com/article/index/cid/3跳轉到www.5i1show.com/article/help/

rewrite ^/article/index/cid/3 /article/help/ permanent;

www.5i1show.com/article/index/cid/4跳轉到www.5i1show.com/article/notice/

rewrite ^/article/index/cid/4 /article/notice/ permanent;

www.5i1show.com/article/index/cid/5跳轉到www.5i1show.com/article/media/

rewrite ^/article/index/cid/5 /article/media/ permanent;

www.5i1show.com/article/notice/p1/跳轉到www.5i1show.com/article/notice/

rewrite ^/article/notice/p1/ /article/notice/ permanent;

www.5i1show.com/article/media/p1/跳轉到www.5i1show.com/article/media/

rewrite ^/article/media/p1/ /article/media/ permanent;

www.5i1show.com/article/view/p1/跳轉到www.5i1show.com/article/media/

暫時先寫一部分,看看有沒有需要的,如果你也有更好的可以一起**,

nginx 301 302跳轉配置總結

首先看簡單的 示例,關於nginx 301 302跳轉的。301跳轉設定 server 302跳轉設定 server 關於nginx 301 302跳轉的詳細說明文件 server last 基本上都用這個flag。break 中止rewirte,不在繼續匹配 redirect 返回臨時重定向的ht...

ECSHOP站內頁面跳轉,避免死鏈

3.x版本網域名稱重定向 seo 需要 大寫字元301跳小寫過程 scenery rewriterule scenery scenery n,rp rewriterule scenery scenery index.aspx n,i 用於ecshop站內頁面跳轉,避免死鏈 例如 httpd.ini ...

關於TPshop2 0訪問內頁跳轉首頁問題

原因在於空間所使用的php是fast cgi模式,而在某些情況下,不能正確識別path info所造成的錯誤 摘抄自 此處使用 空間來自90起航 非廣告 tpshop2.0根目錄.htaccess 原 options followsymlinks multiviews rewriteengine o...