News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Redirecting old index.php to new forums

Started by johnwise, August 06, 2005, 08:05:34 PM

Previous topic - Next topic

johnwise

I am not too familiar with php.  I figure many of my members have bookmarked the phpbb forum homepage.   How can I redirect it to my new forum(smf).  I am just about set to give it a shot.
Thanks.


johnwise

Actually, my new forum is in a different folder than the old one.  It will use the same db.  Seems to me I should just be able to redirect the myoldforum/phpbb2/index.php to mynewforum/forum/index.php?

If that is the case, all I need to know is how to change the index.php file in the old folder to redirect.  If I don't have things wrong here.

Thanks.

[Unknown]

If you just want index.php, you can use:

<?php

header
('HTTP/1.1 301 Moved Permanently');
header('Location: http://www.example.com/forum/index.php');

?>


-[Unknown]


Advertisement: