PDA

View Full Version : Dumb question - default home page



amphicar770
Mon 24th Dec '07, 3:25am
Hi all,

I have vb installed in my public_html/forum directory.

Currently I have cpms also installed which creates an index.php file in /public_html and sets up my default home page.

I am looking to ditch the CPMS. What would I need to replace index.php with (filename and content) so that a user visiting mysite.com would see my vb forum as the default home page?

Thanks.

Andy Huang
Mon 24th Dec '07, 1:39pm
You can either move the forum to the root directory so it goes www.yoursite.com will give you the forum; or you can add this to the index.php and have it automatically forward www.yoursite.com/ to www.yoursite.com/forum/


<?php
header("Location: http://www.yoursite.com/forum/");
?>

Be sure to change yoursite.com and forum if you're actually using something else...