首頁 後端開發 php教程 thinkphp 在 nginx 設定 rewrite

thinkphp 在 nginx 設定 rewrite

Jul 29, 2016 am 09:04 AM
addclass index rewrite

<code><span>if</span> (!-e <span>$request_filename</span>)
 {
     <span>#地址作为将参数rewrite到index.php上。</span><span>#rewrite ^/(.*)$ /index.php/$1;</span><span>#若是子目录则使用下面这句,将subdir改成目录名称即可。</span>
     rewrite ^<span>/subdir/</span>(.*)<span>$ </span>/sudir/index.php/<span>$1</span>;
 }</code>
登入後複製
').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });

以上就介绍了thinkphp 在 nginx 中配置 rewrite,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。

本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn

熱AI工具

Undresser.AI Undress

Undresser.AI Undress

人工智慧驅動的應用程序,用於創建逼真的裸體照片

AI Clothes Remover

AI Clothes Remover

用於從照片中去除衣服的線上人工智慧工具。

Undress AI Tool

Undress AI Tool

免費脫衣圖片

Clothoff.io

Clothoff.io

AI脫衣器

AI Hentai Generator

AI Hentai Generator

免費產生 AI 無盡。

熱門文章

R.E.P.O.能量晶體解釋及其做什麼(黃色晶體)
2 週前 By 尊渡假赌尊渡假赌尊渡假赌
倉庫:如何復興隊友
4 週前 By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island冒險:如何獲得巨型種子
3 週前 By 尊渡假赌尊渡假赌尊渡假赌

熱工具

記事本++7.3.1

記事本++7.3.1

好用且免費的程式碼編輯器

SublimeText3漢化版

SublimeText3漢化版

中文版,非常好用

禪工作室 13.0.1

禪工作室 13.0.1

強大的PHP整合開發環境

Dreamweaver CS6

Dreamweaver CS6

視覺化網頁開發工具

SublimeText3 Mac版

SublimeText3 Mac版

神級程式碼編輯軟體(SublimeText3)

index.html是什麼文件? index.html是什麼文件? Feb 19, 2024 pm 01:36 PM

index.html是什麼文件?

nginx rewrite如何實現URL跳轉 nginx rewrite如何實現URL跳轉 Jun 03, 2023 am 11:55 AM

nginx rewrite如何實現URL跳轉

Nginx怎麼設定location與rewrite規則 Nginx怎麼設定location與rewrite規則 May 18, 2023 pm 12:25 PM

Nginx怎麼設定location與rewrite規則

PHP常用的檔案操作函數總結 PHP常用的檔案操作函數總結 Apr 03, 2024 pm 02:52 PM

PHP常用的檔案操作函數總結

基於聚合資料的簡訊API介面呼叫範例-Python版 基於聚合資料的簡訊API介面呼叫範例-Python版 Apr 03, 2024 pm 01:28 PM

基於聚合資料的簡訊API介面呼叫範例-Python版

jQuery如何新增類別? jQuery如何新增類別? Apr 03, 2024 am 09:01 AM

jQuery如何新增類別?

mysql index是什麼 mysql index是什麼 Oct 08, 2023 am 11:47 AM

mysql index是什麼

https怎麼去除index.php https怎麼去除index.php Jun 16, 2023 am 11:41 AM

https怎麼去除index.php

See all articles