MyBB Community Forums

Full Version: Changing domain name
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
My current domain: http://spamheaven.co - I purchased http://spamheaven.com and I want my board to be on the .com domain. How to do that?
1. Change the Board url & Cookie settings in inc/settings.php file...

2. and then change them at ACP >> Configuration >> Site Details as well...
I don't see where to change stuff in inc/settings.php. Here is da file:

<- snip ->
$settings['bbname'] = "Spam Heaven";
$settings['bburl'] = "http://spamheaven.com";

<- snip -> 

$settings['cookiedomain'] = ".spamheaven.com";
$settings['cookiepath'] = "/";
$settings['cookieprefix'] = "";

<- snip ->
^ you already have correct settings for .com domain in the settings.php file
Oh. Because I changed in settings in ACP? But... when going to my forum, it says 403 Forbidden, can't access / on this server, etc.

Nevermind. I fixed it. In fact, I already knew to edit settings and inc/settings.php by reading other threads about this on this forum. But my real mistake was in my web-host: For where spamheaven.com got it's files: I pointed it to public_html/spamheaven.com - but that directory doesn't have anything in it. It should be public_html, and I have fixed it. Thank you, guys.
^ yes, changes done in admin panel are stored in the database & reflected through settings.php file.

for the 403 Forbidden error
you have to check file permissions, rewrite rules in .htaccess & trace server error log if it is available at web host control panel
Oh, and the 403 error was because public_html/spamheaven.com wasn't CHMODDED correctly.