Page 1 of 1

how do i change the default page?

PostPosted: 20. May 2007 08:16
by glock18forlife
I've already tried messing with the virtual hosts and it didn't work out for me.

Id like to be able to set "http://localhost/phpbb2/" or any other html page i make as the default page when you type in http://"ip-adress" instead of having the xampp page come up.

All and any help appreciated.

PostPosted: 20. May 2007 10:00
by Wiedmann
to set "http://localhost/phpbb2/"

Put the phpBB files into the directory "\xampp\htdocs\phpbb2" (create first this directory).

as the default page when you type in http://"ip-adress"

With this URI you must put the html files from your default page into the directory "\xampp\htdocs" (delete first the existing files in this directory).

PostPosted: 20. May 2007 20:17
by glock18forlife
Thank you very much!

PostPosted: 30. May 2007 16:32
by DigitalDeath,
and also if u want it just to be http://IPADDRESS/ go into htdocs and open index.php and you will see this:

Code: Select all
<?php
   if (!empty($_SERVER['HTTPS']) && ('on' == $_SERVER['HTTPS'])) {
      $uri = 'https://';
   } else {
      $uri = 'http://';
   }
   $uri .= $_SERVER['HTTP_HOST'];
   header('Location: '.$uri.'/xampp/');
   exit;
?>
Something is wrong with the XAMPP installation :-(


Change it to:

Code: Select all
<?php
   if (!empty($_SERVER['HTTPS']) && ('on' == $_SERVER['HTTPS'])) {
      $uri = 'https://';
   } else {
      $uri = 'http://';
   }
   $uri .= $_SERVER['HTTP_HOST'];
   header('Location: '.$uri.'/phpbb2/');
   exit;
?>
Something is wrong with the XAMPP installation :-(

PostPosted: 02. June 2007 19:45
by Codesmith
If you don't specify a file, the server will look for an file named index in the specified directory and server that page.

So you can also simply replace the index.php file with your sites homepage.