url中去掉index.php,方便redirect()
生活随笔
收集整理的這篇文章主要介紹了
url中去掉index.php,方便redirect()
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
01 配置文件
return Array(
'URL_MODEL' => '2',
);
?
02
index.php入口文件下面加入文件 .htaccess -->使用editplus-->另存為
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
</IfModule>
?
03 修改?
nginx 下的配置文件 引入?mod_rewrite.so
轉載于:https://www.cnblogs.com/bj-tony/p/5537603.html
總結
以上是生活随笔為你收集整理的url中去掉index.php,方便redirect()的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 百忍成金下一句是什么啊?
- 下一篇: NET基础(3):is 和 as 操作符