Inconsistent behavior in Safari

I am confronting a strange issue, noticeable only on Safari when accessing the site in the production site (it doesn’t happen with local MAMP) [difference between both is PHP in MAMP 5.3 whereas in site 5.2, in the process of changing to 5.3].

Click on a link that should bring a create Form

Request URL:

Request Method:GET

Status Code:200 OK

Request Headers



User-Agent:Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_7; en-us) AppleWebKit/533.21.1 (KHTML, like Gecko) Version/5.0.5 Safari/533.21.1

Response Headers





Date:Thu, 02 Jun 2011 19:30:45 GMT


Keep-Alive:timeout=15, max=98

Last-Modified:Tue, 24 May 2011 03:52:44 GMT


Instead it displays the content of the /index.php


// change the following paths if necessary



// remove the following lines when in production mode

defined(‘YII_DEBUG’) or define(‘YII_DEBUG’,true);

// specify how many levels of call stack should be shown in each log message

defined(‘YII_TRACE_LEVEL’) or define(‘YII_TRACE_LEVEL’,3);



Notice that Safari shows the right URL and if I hit REFRESH the form shows up !

The form shows properly with Firefox, Chrome and IE8

Any hint will be greatly appreciated

The problem seems to be due to some spaces at the end of the .htaccess

seems to be fixed by now !

Wow that’s whacked!

Do you think it’s a Yii issue or apache or other??


It really puzzle me that it only occurred in Safari … I can only assume that apache returns a slight variation to the browser that is caught by Safari and ignored by the rest.

But failed attempting to reproduce the problem :(

next time the problem shows up I’ll save the state before any fixing attempt !