IIS安裝Apache偽靜態外掛程式,iisapache偽靜態_PHP教程

來源:互聯網
上載者:User

IIS安裝Apache偽靜態外掛程式,iisapache偽靜態


Apache和IIS分別有自己的偽靜態操作方法,那在Servers2003_IIS需要給PHP程式使用偽靜態呢?安裝rewrite外掛程式包。

一、下載rewrite外掛程式包,一般裡面必須有httpd.ini和Rewrite.dll,

二、一般推薦將偽靜態包放至網站根目錄下,然後在需要偽靜態網站右擊選擇屬性,,找到ISAPI篩選器,添加rewrite.dll,關閉IIS後再開啟,發生優先順序變成高,,說明安裝成功了。

三、開啟httpd.ini,開始配置偽靜態

 1 [ISAPI_Rewrite] 2  3 # 3600 = 1 hour 4 CacheClockRate 3600 5  6 RepeatLimit 32 7  8  9 # Protect httpd.ini and httpd.parse.errors files10 # from accessing through HTTP11 12 # =====以上是預設代碼建議不改,#為注釋=====
 1 #RewriteRule --偽靜態編輯 2 #^/ 前置為網域名稱 3 #/$ 此處為止 4 #/ --被偽靜態-- \ --尾碼-- \ 5 RewriteRule ^/webiste/$ /webiste/index\.php\ 6  7 #([a-z]+) --Regex 8 #一個()代表一個$數字 9 #(/?) --表示/可有可無10 RewriteRule ^/webiste/([a-z]+)(/?)$ /webiste/$1\

四、偽靜態是即時更新的,所以可以做即時測試。

PS:([a-z0-9]+),(/page?)([a-z0-9]+)(/?)

http://www.bkjia.com/PHPjc/1130981.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/1130981.htmlTechArticleIIS安裝Apache偽靜態外掛程式,iisapache偽靜態 Apache和IIS分別有自己的偽靜態操作方法,那在Servers2003_IIS需要給PHP程式使用偽靜態呢?安裝rewrite插...

  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.