PDA

View Full Version : How To How to make "What's New" the default page



promo4um
10-28-2010, 12:23 AM
Any idea how I can make the homepage to my vBulletin go directly to "What's New?"

Joeychgo
11-06-2010, 04:07 AM
DO you not want it to go to the forumhome at all? If so then you can just use a redirect.

promo4um
11-06-2010, 10:44 PM
DO you not want it to go to the forumhome at all? If so then you can just use a redirect.

Yep, that's what I did. I added this at the beginning of index.php:

/*Redirect to "What's New" */
$host = $_SERVER['HTTP_HOST'];
$uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
$extra = 'search.php?do=getdaily&days=14';
header("Location: http://$host$uri/$extra");
exit;

Did the trick.