When I accessed my php webpage then its url looks **http://hostname/mydir/index.php**

but I want to secure my web address and it should be look like **http://hostname/virtual\_dir1/virtual\_dir2/mydir**

Please help me how can I secure my web page url.

Thanks,