MyBB Community Forums

Full Version: Subdomain -> Forum
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I have now done it. Everything is working fine. Only I have a problem.

Edit:
// Cookied theme!
else if(!$mybb->user['uid'] && !empty($mybb->cookies['mybbtheme']))
{
    $mybb->user['style'] = (int)$mybb->cookies['mybbtheme'];
} 

To:
else if($_SERVER["SERVER_NAME"] == "subdomain.domain.tld")
{
    $loadstyle = "tid = 'x'";
} 


When I visit my subdomain, the forum calls are all hyperlinks such as. Login, register, etc. under the main domain available. Is there the possibility to call for mobile users, also the whole under the subdomain?

ie .:
User is registered in the forum. As soon as he calls the subdomain, the forum will appear, which works so far perfectly. However, when users click Logon, they will get to the main domain.

Have I forgotten a setting to change?
Need help
Due to setting my forum up after I finalized the domains, I had to do a few .htaccess changes to basically use old domain point to the new domain (This is just so I can have both domains points to the same place, not require. Just to show you that you might need to check your .htaccess file.

RewriteEngine On 


RewriteCond %{HTTP_HOST} ^gamersanctuary\.xyz$ [OR]
RewriteCond %{HTTP_HOST} ^www\.gamersanctuary\.xyz$
RewriteRule ^/?$ "https\:\/\/aeythex\.com" [R=301,L]

 





RewriteCond %{HTTPS} off

RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]





RewriteCond %{IS_SUBREQ} false

RewriteCond %{THE_REQUEST} !^POST

RewriteRule ^index.php$ https://www.aeythex.com [R=301,L]


More than likely you need to edit /inc/settings.php and look for this line to reflect your URL change:


$settings['bburl'] = "https://www.aeythex.com";

Please note you can't just edit inc/settings.php, but need to make the changes via the ACP (ACP => Board Settings)

You might need to write a simple plugin which plays with the global_start hook to manipulate $settings['bburl'].
Hello,

Unfortunately I can not continue with the contributions. Is there no way to do this quickly and easily?
Can anybody help me? I search a Solution.
I am serach a solution, please help.
... i am searching a methode. Can any help me?
Try to do with Cloudflare? it will redirect mobile users to your subdomain and for subdomain create the subdomain as usual and point the subdomain directory same as your forum root domain. Its like
example.com points to public_html so mobile.example.com will also need to be point to same directory(i.e. public_html) and cloudflare will force mobile users to redirect to mobile domain(idk never tried these type of things).