//請大神幫忙翻譯一下,尤其是最后一行 ?RewriteRule****************************Code***************************************<IfModule mod_rewrite.c> RewriteEngine on ? //重寫開啟 RewriteCond %{REQUEST_FILENAME} !-d ? RewriteCond %{REQUEST_FILENAME} !-f ? RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]</IfModule>**************************Questions******************************************// 假設(shè)這個(gè).htaccess文件就在根目錄下,這個(gè)根目錄還有一個(gè)index.php//此時(shí)在地址欄輸入:127.0.0.1/test.php//REQUEST_FILENAME 是 test.php?//如果url是pathinfo模式呢?127.0.0.1/index.php/Home/Index/index/id/1//那此時(shí)REQUEST_FILENAME又是什么呢?//RewriteRule中的正則傳入的是REQUEST_FILENAME嗎?//RewriteRule最后面的標(biāo)記都是什么意思?
- 1 回答
- 0 關(guān)注
- 1298 瀏覽
添加回答
舉報(bào)
0/150
提交
取消