Note that there are some explanatory texts on larger screens.

plurals
  1. POYii can't start gii
    text
    copied!<p>I am developing website with PHP Yii Framework and I am now stack, I need to start gii, but I can't do this. when i type www.example.com/index.php/gii or www.example.com/gii it gives me this error :</p> <pre><code> /gii/default/login // &lt;- website redirects to here This webpage has a redirect loop The webpage at http://www.example.com/gii/default/login has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer. </code></pre> <p>I don't think that the error is because of modified htaccess and main configuration, but anyway here is main.php configuration file:</p> <pre><code> 'urlManager'=&gt;array( 'urlFormat'=&gt;'path', 'showScriptName'=&gt;false, 'rules'=&gt;array( 'site/page/&lt;view:\w+&gt;'=&gt;'site/page', '&lt;controller:\w+&gt;/&lt;cact:\w+&gt;/&lt;action:\w+&gt;'=&gt;'&lt;controller&gt;/&lt;cact&gt;', '&lt;controller:\w+&gt;/&lt;id:\d+&gt;'=&gt;'&lt;controller&gt;/view', '&lt;controller:\w+&gt;/&lt;action:\w+&gt;/&lt;id:\d+&gt;'=&gt;'&lt;controller&gt;/&lt;action&gt;', '&lt;controller:\w+&gt;/&lt;action:\w+&gt;'=&gt;'&lt;controller&gt;/&lt;action&gt;', ), ), </code></pre> <p>and .htaccess :</p> <pre><code>Options +FollowSymLinks IndexIgnore */* RewriteEngine on #non-www to www RewriteCond %{HTTP_HOST} !^www\. RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] # 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 [L] </code></pre> <p>So can you help me, please?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload