Thanks for the reply.
I don’t know for sure whether its IIS or Apache, its a shared hosting server which we have access to though a web based control panel - Parallels Panel.
I guess its IIS because you can put asp scripts on there as well as php.
Here are the urlManager rules :
'urlManager'=>array(
'urlFormat'=>'path',
'showScriptName'=>false,
'rules'=>array(
'stock'=>array('site/stock', 'urlSuffix'=>$url_prefix ),#x
'about-us'=>array('site/about', 'urlSuffix'=>$url_prefix ),#x
'terms-of-website'=>array('site/termsofwebsite', 'urlSuffix'=>$url_prefix ),#x
'terms-of-sale'=>array('site/termsofsale', 'urlSuffix'=>$url_prefix ),#x
'privacy-policy'=>array('site/privacypolicy', 'urlSuffix'=>$url_prefix ),#x
'/'=>array('site/index', 'urlSuffix'=>$url_prefix ),#x
'after-sale-services'=>array('site/aftersaleservices', 'urlSuffix'=>$url_prefix ),#x
'garage-services'=>array('site/garageservices', 'urlSuffix'=>$url_prefix ),#x
'warranties'=>array('site/warranties', 'urlSuffix'=>$url_prefix ),#x
'how-it-works'=>array('site/howitworks', 'urlSuffix'=>$url_prefix ),#x'stock'=>array('site/stock', 'urlSuffix'=>$url_prefix ),#x
'apply-now'=>array('site/apply', 'urlSuffix'=>$url_prefix ),#x
'contact-us'=>array('site/contactus', 'urlSuffix'=>$url_prefix ),#x'stock'=>array('site/stock', 'urlSuffix'=>$url_prefix ),#x
'advanced-search'=>array('site/search', 'urlSuffix'=>$url_prefix ),#x
'listing/<car:.*?>'=>array('site/listing', 'urlSuffix'=>$url_prefix ),#x
'car/<id:.*?>/<title:.*?>'=>array('site/product', 'urlSuffix'=>$url_prefix ),#x,
),
),
One other thing I should probably mention, there is a directory called “framework” which seems to be the workings of yii framework, on the linux server this directory existed at the same level as the “www root” directory, however on the new windows server I couldn’t put this directory in the same place because of permission issues, so I copied in within the “www root” directory.
However in the index.php file I changed :
$yii=dirname(FILE).’/../framework/yii.php’;
to :
$yii=dirname(FILE).’\framework\yii.php’;
to accomodate for this change.
Thanks,
Paul