It looks like you're new here. If you want to get involved, click one of these buttons!
I set a redirect using the redirect but instead of redirecting to where I want it to redirect it goes to the main page. I am using WordPress so I want to redirect the IP address of my site to go to the WordPress site.
For starters, you cannot control what's being displayed on the IP address your website is on. IP(v4) addresses are of limited quantity of the world, so we host many websites from different customers on a single IP address, as all shared hosting providers do.
Please note that setting up a redirect will redirect EVERY URL on your website. So if you set up a redirect for example.com, then example.com/blog, example.com/forum/index.php and example.com/images/cat.jpg will be redirected as well.
If you installed a script to a subdirectory, I'd recommend you either:
<?php header('location: /wp/');