MyBB Community Forums

Full Version: How to make /forumdisplay.php?fid=2 the index.php
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

When a user visits "site.com" I want it to load up "/forumdisplay.php?fid=2" because I only have one forum.

How can I accomplish this?
Simplest way: setup a redirect in the index.php file in your site's url to redirect to the link you want
<meta http-equiv="Refresh" content="0;url=http://linkyouwanttoredirectto" />

A more elegant way: Set it up using rewrite rules in htaccess.
http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html
3rd way: set the directoryindex in your htaccess to forumdisplay.php?fid2:

DirectoryIndex forumdisplay.php?fid2
Thanks guys, I think I will do both!
Just add this to the VERY top of index.php:

<?php
header("Location: /forumdisplay.php?fid=2");
?>