Deploying yii on the home directory

Hi,

I am a newbie and trying to create a weblog for myself using yii. What I’d like to achieve is to install Yii such that when a user goes to my domain e.g. www.myblog.com, the welcome page “Welcome to My Web Application” shows. I don’t want to have a subdomain for my blog. What is the best way to achieve this? Is it possible to install yii on the home directory? Or is it better to somehow install the app in a subdomain and redirect it to the root of the domain?

Thanks!

You can configure your web server to point it to wherever you want, it’s independent from the directory where you put your app. You can have a look at http://httpd.apache.org/docs/2.4/urlmapping.html

just put framework folder to webroot and put all files and folders from your app’s folder to webroot. it will make your app start when accessing your domain

If this is the only app you plan to have then it is a good approach, if not, invest more time in design setting up the web server properly and some www root subdirectories.

Thanks to both of you. I opted for the url redirection option. Works fine for me!