I have one site in which I want URL like SiteURL/about.html.
I have changed code in config/main.php
but when I login to site then gets session expired when I navigate to any other page.
If comment this code 'showScriptName'=>false
in config/main.php
file, then its work fine and now my login session is saved and us not expired however now my URL is becoming like this SiteURL/index.php/about.html
But I want URL like about.html.
I have also one another controller for game option which URL is like: http://www.demo.com/index.php/Games/info/9.html but I want URL like SiteURL/black-hook.html in this "black-hook" is the name of the game.
'urlManager'=>array(
'urlFormat'=>'path',
'showScriptName'=>FALSE,
'rules'=>array(
'<action>'=>'site/<action>',
'<view>'=>'array('site/page')',
'<controller:\w+>/<id:\d+>'=>'<controller>/view',
'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
'<controller:\w+>/<action:\w+>'=>'<controller>/<action>'
),
),
*SiteURL = http://www.demo.com