MyBB Community Forums

Full Version: Using domain name removes template?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello everyone, I got a domain name for my server today, however I seem to have a problem.. I set it up so when going to the domain name forwards you to my server and masks the IP to the domain name.

If in the ACP > Config > Board Settings > General Config
I change the board url to http://DOMAIN-NAME.com/forums
the forums look like this:
http://puu.sh/4XnOC.png

If I change the board url to:
http://SERVER-IP/forums
It looks perfectly fine, runs good etc. However, if I open a new section or any link of my forum to a new tab, in the new tab it will open like:
http://SERVER-IP/####
#### = whatever subsection it's in

How can I change it so the server IP isn't visible, only my domain name? (With ofcourse working template..)


EDIT: If the board url is set to the domain name, and I visit http://SERVER-IP/forums I get the exact same page as I would get if I visited with the domain name. (Same thing other way around)
I've think that I've had issues with that in the past as well. It's usually either related to faulty CSS page caching on your browser or a board URL issue.

1) Try reloading without cache with the proper domain name as the board URL. (usually ctrl + f5 or ctrl + r on most browsers)

2) Try changing the board URL in both the ACP and in the inc/settings.php file.

3) Ensure that the board URL is correct and is formatted properly. If there is a typo or it is in the wrong format, it could cause some issues.
(2013-10-23, 02:50 PM)Darth Apple Wrote: [ -> ]I've think that I've had issues with that in the past as well. It's usually either related to faulty CSS page caching on your browser or a board URL issue.

1) Try reloading without cache with the proper domain name as the board URL. (usually ctrl + f5 or ctrl + r on most browsers)

2) Try changing the board URL in both the ACP and in the inc/settings.php file.

3) Ensure that the board URL is correct and is formatted properly. If there is a typo or it is in the wrong format, it could cause some issues.

1) No changes Sad

2) The settings.php file already contained the correct board url (I checked)

3) It is,

My last guess I have something setup wrong? Else I can't think of something
Did you set files chmod correctly? Look in ACP -> Tools & Maintenance if everything is writable. Then double check with FTP or something by reading this carefully: http://docs.mybb.com/CHMOD_Files.html
Everything is writeable - http://puu.sh/4XsHv.png
I highly doubt it could be that, as it works if I put it to my own IP, but not when set to domain name.

EDIT: Chmodded everything according to instructions, nothing changedSad
ACP -> Tools & Maintenance -> Cache Manager
Rebuild everything there after setting domain url.

Then open global.css of your theme and save it.

It would be helpful if you gave your forum url and line from inc/settings.php. If that's another 'top secret' project, make at least screenshot of how your links with board URL look in Firebug/Chrome console/whatever.
(2013-10-23, 05:57 PM)Destroy666 Wrote: [ -> ]ACP -> Tools & Maintenance -> Cache Manager
Rebuild everything there after setting domain url.

Then open global.css of your theme and save it.

It would be helpful if you gave your forum url and line from inc/settings.php. If that's another 'top secret' project, make at least screenshot of how your links with board URL look in Firebug/Chrome console/whatever.

Didn't work Sad

My forum link is : www.aetas-legacy.com

Also do you mean this line?:
$settings['bburl'] = "http://aetas-legacy.com/forums";

(My forum is located at /forums/, the root directory is empty but does have an index redirecting to /forums/)
So the url with messed up forum theme is http://aetas-legacy.com/forums or this http://www.aetas-legacy.com/? Both look ok for me: https://docs.google.com/file/d/0B6pgReiH...p=drivesdk... Are you sure hard refresh doesn't work (CTRL + F5 or SHIFT + F5)? Try on other browser/computer.
(2013-10-24, 10:16 AM)Destroy666 Wrote: [ -> ]So the url with messed up forum theme is http://aetas-legacy.com/forums or this http://www.aetas-legacy.com/? Both look ok for me: https://docs.google.com/file/d/0B6pgReiH...p=drivesdk... Are you sure hard refresh doesn't work (CTRL + F5 or SHIFT + F5)? Try on other browser/computer.

Both are the same link, http://www.aetas-legacy.com/ redirects to subdir forums.
The forums look ok now, because I set it back on the IP instead of domain name (if you open a link in a new tab or window the address bar shows my IP)