### 伪静态配置
* Apache 根目录的.htaccess文件内容是:
```
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
</IfModule>
```
* Nginx
```
location / {
rewrite ^/index\.php$ - last;
if (!-e $request_filename){
rewrite ^(.*)$ /index.php?/$1 last;
}
}
location ^~ /protected/ {
deny all;
}
```