Hi,how can I redirect it to my site if the url is IP addresss ?..because If I will try to input the IP in the Url like this . http://xxx.xxx.xx.xx,it will open the phpmyadmin ,what I want is to redirect it to my site. http://www.mysite.com/index.php
That’s already being accomplished by the DNS of the host.
If you’re asking about this for a test server (on your own computer), you can simulate this by adding your “pseudo domain” to the hosts (in WinDoze, it’s C:\Windows\system32\drivers\etc\hosts) file AND create the virtual host in the httpd-vhosts.conf within Apache’s conf/extras directory. If you’re not using a test server, you’re missing one of the best tools for any webmaster.
If you’re using WHM/cPanel, you have access to your DNS records and can (CAREFULLY) change them, too. If you’re not sure, though, have your host’s support team do that for you.