We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 34162
    • 1 Posts
    Hi, if anyone can help it is greatly appreciated.

    My site is currently working with cacheable documents.
    I am using wayfinder, ditto, weblogin, some tvs and phx.

    Suddenly my home page hyperlinks turned to "http://*server_name*/.." instead of "http://*server_ip*/..".
    Consequently all web users can’t connect (weblogin), download documents from home page or use the main menu.
    It works again if i turn the page caching system to off but i need it.

    i don’t find the problem source from my own. huh

    Thanks for your help.

    ps: sorry for my bad english








    • Just a thought ...

      Do you have a <base> tag with a value of [(site_url)]? It can happen if the wrong site_url gets cached in the base tag, for example when the cache is cleared and the first hit to the page is to the server name instead of the IP.

      The best bet is to create a snippet that returns the site URL and replace [(site_url)] with the uncached snippet, for example: [!getSiteUrl!]

      The getSiteUrl snippet would contain:
      return MODX_SITE_URL;

        Garry Nutting
        Senior Developer
        MODX, LLC

        Email: [email protected]
        Twitter: @garryn
        Web: modx.com
        • 34162
        • 1 Posts
        Thank you very much Garryn for helping grin

        you fixed the problem.