MyBB Community Forums

Full Version: Loading CSS from subdomain.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello all,

I have a question;
I want to load my CSS files from a subdomain rather then on my own main domain. How do I do this?

Do I go into global.php and edit;

$stylesheets .= "<link type=\"text/css\" rel=\"stylesheet\" href=\"{$mybb->settings['bburl']}/{$page_stylesheet}\" />\n";
to
$stylesheets .= "<link type=\"text/css\" rel=\"stylesheet\" href=\"http://subdomain.website.com/{$page_stylesheet}\" />\n";

Thank you for your time!

Kind regards,

Senethic
yes, you can edit that in global.php file
(2013-07-22, 11:25 AM).m. Wrote: [ -> ]yes, you can edit that in global.php file

I just got an error, I noticed that I needed css.php to so I moved to towards the subdomain to but unfortunately I'm getting a 500 php error.

I have to go now, will post the error log later.

I copy pasted the whole 'inc' folder, seems to be working now Wink