MyBB Community Forums

Full Version: How to redirect URL's?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Sorry about the vague title. I wasn't sure what to call it. Undecided

Here's the lowdown: I made a new site, and changed around the index.html file that was presented to me (by deleting it, intending to do something else, then creating a new one). Now, when I go to my main URL, it displays the original index file. I now want it to redirect to my forum, which is in a subfolder called "forum", skipping index.html altogether (the design is poor. I had originally had an idea, but it didn't work out right).

How would I go about this? I figure that an htaccess rewrite would be in order, but I haven't had much luck with this in the past.


(Basically, redirect www.mysite.com to www.mysite.com/forum.)
In cPanel go to redirect domain
Or if you want to do it the lazy way, delete index.html and make a new file called index.php and put this in it.

<?php

header('Location: /forum/');

?>
Or use htaccess and mod rewrite