Home  >  Article  >  Backend Development  >  Apache_PHP_PHP_PHP

Apache_PHP_PHP_PHP

WBOY
WBOYOriginal
2016-07-20 11:17:571757browse

咖庢浵鍙戠幇尅簅獒嬓勷鐩€掎綊璋卂椤鄄勶纴濡四灉鍦ㄩ tons鍐拾卒嬓噷吩渴绂佹php锛岄偅涔堥TON捐椤匌php鏂囦Huan锄勮鍒掎篃浼浼橩け鏁堛€俣ewriteEngineOn

銆€銆€RewriteRule^test$/test.php[L]

銆€銆€RewriteRule^test.php$$0[F,L]

Apache涓嬬姝hp鏂囦欢琚洿鎺ヨ闂殑鏂规硶 甯涔嬪

銆€銆€阃掑綊璋卂敤杩欑湡鍙€曪纴涓€寮€洮嬭闂?test鄄勬椂 chain橴RLRead嶅开妫€镆ヤ竴娆★纴鐒躺悗鍖 Return to the past and test Rao℃ Test.php The inert umbrella is the most popular umbrella EDIRECT_URL毓椤曰屽洜姝ゆ垞璇燇彃鐢ㄨUMandra涓仛鍒ゆ柇銆?/p>

銆€銆€RewriteEngineOn

銆€銆€RewriteRule^test$/test.php[L]

銆€銆€RewriteCond%{REDIRECT_URL}^$

銆€銆€RewriteRule.*$0[F,L]杩欐牱鍐搾搾闂?test渚濇棫暚?03锛倀◢寰镆ヤ笅锛屽彂鐜癛ewriteCond铓?{REDIRECT_URL彲浠ョ敤涓嶆€庝箞鍗庝attached to 鄄勬南娉枞琄鐜 such a€effective ammonia鄄湪php鏂囦Huanjuan幓鍒ゆ柇REDIRECT_URL锛岃槠鐒 inert umbrella涓nan Pingzuoji浠ュ焄鐜 Bangzuhuan嗘槸镒翻尰堥€婏纴鍙槸搐墠涓畊涔熸patient gallium fear 韌浠€涔域洿濂界殑锷炴紶浜嗐€? /p>

銆€銆€$_SERVER['REDIRECT_URL']ordie('Forbidden');

銆€銆€//杩欓哷鍙槸鏄剧ず鏂囧瓧Key屽fan锛屽疄闄呬佳鐢ㄧ殑镞跺€澾缮ND€杈描嚭鄄哥TTP阌澾 Xi h爜銆?/p>

銆€銆€echo$_SERVER['REDIRECT_URL'];//鴴愬姛璁磶鏄剧ず奇℃伅

銆€銆€?>

銆€銆€鎶婅 umbrella娈礟HP浠g爜奇敼涓嬩涪杩涘叏Ba€寮kuang椤豽NH鍩簰涓婃 Disease 鍟ラ棣棰树典攛岃槠搒搒/p>

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/371929.htmlTechArticle涓€寮€渮嬶紴戞兂鍦ㄩ tons鍐澾鍒欓噷鐩渴绂佹PHP 鍒铓噷鐩综合帴绂佹php曛岄偅涔堥t卐椤埌...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn