I am running a Yii website, well 2 actually, on the same account. 1 is production, the other is test. each site shares the same Yii framework folder but has their own discreet site files, both sitting at the same level in the folder structure.
I had both sites working perfectly in another account but they were both sub domains. This time the prod domain is the main domain and the test domain is a sub domain.
I would have thought this would be a fairly typical setup and was hoping to find some generic walkthrough for this type of setup but havent been able to find anything.
So, site root folder for the account is \home\mydomain\public_html (where mydomain.com points to)
Yii framework folder: \home\mydomain\yii-1.1.14
root folder: \home\mydomain\public_html\mydomain.com
protected folder: \home\mydomain\public_html\mydomain.com\protected
www folder: \home\mydomain\public_html\mydomain.com\www
root folder: \home\mydomain\public_html\test.mydomain.com
protected folder: \home\mydomain\public_html\test.mydomain.com\protected
www folder: \home\mydomain\public_html\test.mydomain.com\www
At the moment, the site works fine however I am having trouble hiding "mydomain\www\" from the URL path.
As stated previously, this was working perfectly when it was set as a sub domain in another account.
I guess the difference is that now I have .htaccess in the root folder that points to domain.com\www as the site root, which bypasses the public_html\domain.com folder that was the site root in the previous config.
I presume I need:
.htaccess in public_html to point to domain.com/www
.htaccess in public_html/domain.com/www to hide the folders from the URL path?
any help would be appreciated