PHP IIS6.0配置偽靜態無效求解決,該如何處理

來源:互聯網
上載者:User
PHP IIS6.0配置偽靜態無效求解決
php頁面能正常運行。

配置完偽靜態。
ISAPI 篩選器 狀態顯示:已載入,有綠色上升箭頭

重寫檔案 內容如下:
[ISAPI_Rewrite]


# 3600 = 1 hour
CacheClockRate 3600

RepeatLimit 32

# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP

RewriteRule ^(.*)\.html $1\.php



訪問測試地址:
http://www.iprc.cn/test.php


有人知道嗎?

rewrite 是從這裡下載的:http://www.jb51.net/softs/6192.html

分享到:


------解決方案--------------------
建議你用apache,不建議用iis
------解決方案--------------------
RewriteRule ^(.*)\.html $1\.php

意思是 xxx.html 轉向到 xxx.php

iis下建議你用iis url rewrite 官方工具,可以通過匯入.htaccess
------解決方案--------------------
你的iis下是否可以完全運行
http://www.iprc.cn/test.php

  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.