double domain name

  • Victor Ivrii

    Victor Ivrii - 2010-06-23

    We have two equivalent domain names

    and jsMath configured via load.js for

    and does not work (does not loads) for

    Is there any way *easy* way to configure to serve both (except obvious but ugly to have load2.js configured for the second domain name and loading for webpage both)?

    By the obvious reason MathJax does not have such problems



  • Davide P. Cervone


    If you leave the value for the root directory as an empty string in the jsMath/easy/load.js file, the same configuration file should work for both domains.  That will cause jsMath to try to figure out where it was loaded from and use that as the root.  This works well except in some instances with Internet Explorer if the URL where jsMath was loaded is a relative one.  If it is absolute, there should be no problem.



Log in to post a comment.