2008年2月18日 星期一

.hatccess隱藏副檔名php 教學

第一步 :

建立 : .hatccess 檔


第二步 抄下這二個指令

RewriteEngine on
RewriteRule ^twbb$ index.php $T=application/x-httpd-php
第三步 丟到目前正在執行的目錄

demo :
http://www.twbb.org/twbb?board=14;action=d...tart=0#lastPost

說明 :

RewriteRule ^twbb$ index.php

位址重新導向

^twbb$ // 您想要取的名稱

index.php //目標.php的原始位置 asp cgi 等也適用

http://www.twbb.org/twbb 將會重新導向位址至 http://www.twbb.org/index.php

出處

【下列文章您可能也有興趣】

沒有留言: