[Website] Site is broken when accessed via HTTPS (solution inside)

    Joined
    Jan 22, 2014
    Messages
    1,047
    Reaction score
    299
    Description:

    Accessing the site via HTTPS will break the site (unstyled, no scripts). This is especially annoying since Google seems to always provide HTTPS.

    Also, the forum seems to always redirect to HTTP, when starting with HTTPS.



    Reason:

    Link URLs for scripts and stylesheets have the protocol (HTTP) hardcoded. Firefox (and probably every other modern browser) will therefore block these resources (for very good reason, btw).



    Solution:

    Simply remove protocol and host from all resource URIs.

    Example:


    http://star-made.org/modules/system/system.base.css?mxwg3n

    ... becomes: /modules/system/system.base.css?mxwg3n