dear all, i want to redirect default page in ubuntu when you access using ip address to one website in ispconfig. such that instead of showing 'IT WORKS' it should show the website that i want to be shown. any help? thanks in advance.
You can do redirects on a apche webserver in several ways: 1) Apache rewrite: http://httpd.apache.org/docs/2.0/misc/rewriteguide.html 2) A redirect in the html header if a index page. 3) By using a redirect in a script, e.g. index.php Code: <?php header('Location: http://www.othersite.com/'); exit; ?>
Thank you very much Till. among those option listed. which is the best to use? i believe each one must have it's prons and cons. someone also mentioned to me about using .htaccess file. can you advice the best option? thanks and regards.