首頁  >  文章  >  後端開發  >  iis 如何隱藏index.php

iis 如何隱藏index.php

藏色散人
藏色散人原創
2020-11-20 09:45:341929瀏覽

iis隐藏index.php的方法:首先安装微软的URL Rewrite模块;然后点击url重写模块,并点击“导入规则”;最后填入重写规则,并点击“应用”即可。

iis 如何隱藏index.php

推荐:《PHP视频教程

iis隐藏index.php

1.先安装微软的URL Rewrite模块 网址是https://www.iis.net/downloads/microsoft/url-rewrite#additionalDownloads

安装完成后iis会出现url重写模块

2.点击进去点击点击导入规则

 

3.填入 重写规则 ,然后点击右侧“应用”提交:


    
RewriteEngine on    
RewriteCond %{REQUEST_FILENAME} !-d    
RewriteCond %{REQUEST_FILENAME} !-f    
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]    

  

 

以上是iis 如何隱藏index.php的詳細內容。更多資訊請關注PHP中文網其他相關文章!

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