PHP的.htaccess
生活随笔
收集整理的這篇文章主要介紹了
PHP的.htaccess
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
代碼:用于給路由自動添加index.php文件?
記住修改下面的index.php文件? 和你項目里面的一致!
RewriteEngine on # if a directory or a file exists, use the request directly RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # otherwise forward the request to login.php RewriteRule ^(.*)$ index.test.php?/$1 [QSA,PT,L]?
總結
以上是生活随笔為你收集整理的PHP的.htaccess的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 军校教员怎么立功
- 下一篇: PHP的max_execution_ti