how to redirectdefault webpage in ubuntu to one website in ispconfig

Discussion in 'Installation/Configuration' started by mnzava, Mar 3, 2010.

  1. mnzava

    mnzava Member

    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.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    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;
    ?>
     
  3. mnzava

    mnzava Member

    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.
     
  4. falko

    falko Super Moderator ISPConfig Developer

    I'd use the first option (which can also be achieved by using an .htaccess file).
     

Share This Page