這篇文章給大家分享的是有關(guān)iis6隱藏index.php的方法的內(nèi)容。小編覺得挺實用的,因此分享給大家做個參考。一起跟隨小編過來看看吧。
創(chuàng)新互聯(lián)建站是一家專注于網(wǎng)站建設(shè)、做網(wǎng)站與策劃設(shè)計,平山網(wǎng)站建設(shè)哪家好?創(chuàng)新互聯(lián)建站做網(wǎng)站,專注于網(wǎng)站建設(shè)10多年,網(wǎng)設(shè)計領(lǐng)域的專業(yè)建站公司;建站業(yè)務(wù)涵蓋:平山等地區(qū)。平山做網(wǎng)站價格咨詢:18982081108
iis6隱藏“index.php”的方法:首先打開“httpd.ini”文件;然后設(shè)置偽靜態(tài)規(guī)則為“RewriteRule ^(?!/index.php)(?!/admin.php)(.*)$ /index.php/$1 [L]”即可。
IIS6 隱藏index.php的方法
thinkphp httpd.ini 偽靜態(tài)規(guī)則
[ISAPI_Rewrite] RewriteRule .*\.(?:gif|jpg|png|css|js|txt|jpeg|swf|flv) $0 [I,L] RewriteRule /httpd(?:\.ini|\.parse\.errors) / [F,I,O] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(?!/index.php)(?!/admin.php)(.*)$ /index.php/$1 [L]
感謝各位的閱讀!關(guān)于iis6隱藏index.php的方法就分享到這里了,希望以上內(nèi)容可以對大家有一定的幫助,讓大家可以學(xué)到更多知識。如果覺得文章不錯,可以把它分享出去讓更多的人看到吧!