I have a Yii site installed on folder "yiisite" which is directly under document root of my site "site.com". This site has a controller "controller".
I want visitors to be able to access particular part (controller) of this yii site by using a virtual direcotry "fakedir".
So that requests like
"site.com/fakedir/great?some=value"
"site.com/fakedir/really/great"
would get rewritten to
"site.com/yiisite/index.php/controller/awesome"
"site.com/yiisite/index.php/controller/great?some=value"
"site.com/yiisite/index.php/controller/really/great"
A simple rule like:
fakedir(.*)$ /yiidir/index.php/controller/$1 [QSA]
Does not work. No matter what I enter after "fakedir", it always resolves to base action (index.php) as if there was nothing there.
How can I solve this problem?
Thanks,
zelcs