I have problem with Yii routing system and it does not work for me.
I use the default forms of the yii in my app like: http://example.com/site/login
but when a user click on submit button and it takes more than few seconds to proceed the data, the routing system will fail and the above address will change to: http://site/login
(!!!)
I can't understand why it happens.
this is my URLManager:
'urlManager' => array(
'urlFormat' => 'path',
'rules' => array(
'<controller:\w+>/<id:\d+>' => '<controller>/view',
'<controller:\w+>/<action:\w+>/<id:\d+>' => '<controller>/<action>',
'<controller:\w+>/<action:\w+>' => '<controller>/<action>',
'moderator' => 'moderator/Post',
'admin' => 'admin/main',
'index/' => 'site/index',
'profile/show/<username>' => 'profile/show',
'profile/list/<sorting:[a-zA-Z0-9-]+>/<page:\d+>' => 'profile/list',
'admin/contact/page/<page:\d+>' => 'admin/contact',
'admin/contact/view/<id:\d+>' => 'admin/contact/view',
),
'showScriptName' => false,
),
and my .htaccess:
<IfModule mod_rewrite.c>
RewriteEngine On
</IfModule>
# Unless an explicit file or directory exists, redirect all request to Yii entry script
<IfModule mod_rewrite.c>
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php
</IfModule>