设置了.urlFormat为path,showScriptName为false,;$this->createUrl()生成的url都是对的,但是访问不了页面,还是必须要加上index.php就可以了.
当然.htaccess也按照guide写好了的.与index.php同一目录
Options +FollowSymLinks
IndexIgnore /
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