Yii Framework Forum: Bug With Index.php With Capital I Vs Index.php With Small I - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Bug With Index.php With Capital I Vs Index.php With Small I Index.php with capital I not working Rate Topic: -----

#1 User is offline   Mohammed Alameri 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 11-May 13

Posted 12 May 2013 - 04:05 AM

When I do Switch Urlmanager to Path to be simple and easy. The big problem is when tried to access the link with Index.php (with capital I) it gaves you 404 error. If you just get it back to the original it worked with capital I.
can anyone help to find solution.I need to use Urlmanger:Path.

// uncomment the following to enable URLs in path-format

'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>',
),
),



for example:
localhost/index.php -> work
localhost/Index.php -> not work (capital I)

but if i dont use the Path way it works perfect even with capital I
localhost/index.php -> work
localhost/Index.php - work

any help please?
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users