yii隐藏索引.php
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了yii隐藏索引.php相关的知识,希望对你有一定的参考价值。
Hiding index.php from url
File: .htaccess LoadModule rewrite_module modules/mod_rewrite.so RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)?*$ index.php/$1 [L,QSA] RewriteEngine on # if a directory or a file exists, use it directly RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # otherwise forward it to index.php RewriteRule . index.php File : conifg/main.php 'urlManager'=>array( 'urlFormat'=>'path', 'showScriptName'=>false, 'caseSensitive'=>false, ),
以上是关于yii隐藏索引.php的主要内容,如果未能解决你的问题,请参考以下文章