Url Re-Direct In Yii

Hi,

After setting up the .htaccess rules, I can now redirect my URL from http://my-ip.com/trackstar/index.php to http://my-ip.com/trackstar. However, ideally, I want it to redirect to http://my-ip.com. That is if I type in http://my-ip.com, I should have my trackstar application appear without taking me to http://my-ip.com/trackstar. How do I do this? Can some one help me?

[b]Server: Ubuntu 12.04

Web Server: Apache 2.2[/b]

.htaccess file


# Turning on the rewrite engine is necessary for the following rules and features.

# FollowSymLinks must be enabled for this to work.

<IfModule mod_rewrite.c>

Options +FollowSymlinks

RewriteEngine On

</IfModule>


# Unless an explicit file or directory exists, redirect all request to Yii entry script

<IfModule mod_rewrite.c>

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . index.php

</IfModule>



I found out what I was doing wrong. mod_rewrite was not enabled on apache. so I did sudo a2enmod rewrite and everything worked like a charm.