Folder/url Manager Setup In Shared Hosting

Hi there,

I’ve developped my web application locally with the following folder structure in xampp:




\htdocs

   \yii

   \mywebsite

      \protected 

      index.php



I’ve always tested my website with localhost\mywebsite

Now I am moving my code to Go Daddy (shared hosting) where I want my website to be available with www.mywebsite.com

So I have this structure:




\root

   \yii

   \mywebsite

      \protected

index.php



I simply changed index.php with this:




$yii=dirname(__FILE__).'/yii/framework/yii.php';

$config=dirname(__FILE__).'/mywebsite/protected/config/main.php';


require_once($yii);

Yii::createWebApplication($config)->run();



Now how is it possible that:

www.mywebsite.com/site actually triggers www.mywebsite.com/mywesbite/site

and how to hide the extra /mywebsite/ in the URL?

Any idea how?

Cheers

Renaud

Hi, where you able to resolve this? I have the same problem. Thanks