I need for requests to: mywebsite.com
to actually hit:
mywebsite.com/project
I don’t want it to be transparent to the browser. The user should still see mywebsite.com even though they are hitting mywebsite.com/project
I have tried the following in my .htaccess file with no luck:
RewriteRule %{HTTP_HOST} ^website\.com$ website.com/project$1
RewriteRule ^website\.com(.*)$ website.com/project$1
RewriteRule ^website\.com$ website\.com/project$1
Can anyone help?
softark
(Softark)
2
Please show us the directory structure of your project.
For example …
/var
/www
/html ... DocumentRoot
/project
index.php
.htaccess
/protected ... yii application
/framework ... yii framework
...
It’s very hard for us to understand your problem without these information. 
outrage
(Site Sense Web)
3
I think this should do the trick:
RewriteBase /
RewriteCond %{REQUEST_URI} !^/project
RewriteRule ^(.*)$ project/$1 [L]
wisp
(Wisp)
4
Why not use URL rewrite rules?
'urlManager' => array(
'urlFormat' => 'path',
'showScriptName' => false,
'rules' => array(
'/' => '/project/index',
),
),
OR you could change default method/controller