MyBB Community Forums

Full Version: url forwarding
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi there not sure if this is the right place to post this

what it is if i trpe my domain name in to the addres bar e.g

www.mysite.com it brings up the list of the folders on my server

i need to type www.mysite.com/forum

to get to my site id there was i can just type www.mysite.com

that will bring my forum up so people can not see my folders

tia for any help with this

cheers

jet
Put this in a .htaccess file in the / folder:

Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.mysite.com/forum/$1 [R=301,L]
hi m8 i put that in but still takes me to the folders not to my website

when i type www.mywebsite.com i can see all my folders
Are you sure you put that in the right folder and called it exactly this:

.htaccess

?? The . at the start is important.
yes m8 i am putting in the .htaccess file the on in my / folder

cheers

jet
are you using apache? .htaccess is a apache thing, other webservers work differently.

how about putting the forum itself in the / folder - no redirect necessary then.
if i move my forum the folder its in will this not mess up my sql database? also will that not just show all my files on my sever if they type www.mysite.com or will it load the index.php automatically ?
You could just get a file to redirect you to the forums. PM me if you want that.