Removing Index.php For Cpanel Temp Url Using .htaccess?

How can i remove index.php for temp url using htaccess. My temp url


192.168.1.25/~username/mysite

i have my files in mysite folder I tried this but getting 404 error




RewriteEngine on

#RewriteBase /~username/

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ./index.php

i think this is should be:




RewriteEngine on

#RewriteBase /~username/mysite

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ./index.php



Yup… That did the trick. A very useful one since most of the developers try in these test url.Thanks .