MyBB Community Forums

Full Version: How do i change the homepage
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
okay i was wondering when i type in my site url (theforgottengamers.com) its goes straight to the forums ( http://theforgottengamers.com/index.php ) and i want to change it to my portal ( http://theforgottengamers.com/portal.php )

so any ideas
Open up your .htaccess and put the following code in it:

RewriteCond %{HTTP_HOST} ^enigmachs.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.enigmachs.com$
RewriteRule ^/?$ "http\:\/\/www\.enigmachs\.com\/portal\.php" [R=302,L]

Replacing enigmachs.com with your domain. Do not remove the www unless your forums are located on a subdomain. Do not remove the ^ or the slashes either.

This is much easier and better than the file renaming and another htaccess code which doesn't work very well.
(2011-07-19, 04:06 AM)lucasbytegenius Wrote: [ -> ]Open up your .htaccess and put the following code in it:

RewriteCond %{HTTP_HOST} ^enigmachs.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.enigmachs.com$
RewriteRule ^/?$ "http\:\/\/www\.enigmachs\.com\/portal\.php" [R=302,L]

Replacing enigmachs.com with your domain. Do not remove the www unless your forums are located on a subdomain. Do not remove the ^ or the slashes either.

This is much easier and better than the file renaming and another htaccess code which doesn't work very well.
i tried this and im not sure where i put it at in the .htaccess

is there any other way because i tried that it didnt work Sad
Read this tutorial here: http://community.mybb.com/thread-43811.html
That should help
(2011-07-19, 04:21 AM)wolfeee Wrote: [ -> ]
(2011-07-19, 04:06 AM)lucasbytegenius Wrote: [ -> ]Open up your .htaccess and put the following code in it:

RewriteCond %{HTTP_HOST} ^enigmachs.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.enigmachs.com$
RewriteRule ^/?$ "http\:\/\/www\.enigmachs\.com\/portal\.php" [R=302,L]

Replacing enigmachs.com with your domain. Do not remove the www unless your forums are located on a subdomain. Do not remove the ^ or the slashes either.

This is much easier and better than the file renaming and another htaccess code which doesn't work very well.
i tried this and im not sure where i put it at in the .htaccess

is there any other way because i tried that it didnt work Sad
Did you change "enigmachs.com" to your domain? Did you put it at the end of your htaccess?