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,
You should do it with a rewrite rule in your .htaccess :
Ex :
For more informations about redirection from .htaccess, look here.
http://corz.org/serv/tricks/htaccess2.php