• Resolved mattpont

    (@mattpont)


    The French version of this website is serving the Litespeed CSS and JS files from the English domain (https://www.fierarealestate.com) which is giving a CORS error in the console due to the fonts being loaded from another domain.

    How do I get the files to load from the domain that they are being viewed on?

    i.e. on https://www.fieraimmobilier.com/, I want the LiteSpeed CSS and JS files to be served from the same domain.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

    please try edit file wp-config.php

    add this into it , then purge all cache

    if (strpos($_SERVER['HTTP_HOST'], "fieraimmobilier") !== false){
    define( 'LITESPEED_STATIC_URL', 'https://www.fieraimmobilier.com/wp-content/litespeed' )
    }

    Best regards,

    • This reply was modified 3 years, 9 months ago by qtwrk.
    Thread Starter mattpont

    (@mattpont)

    Thank you – that’s worked!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Language site serving files from the wrong domain’ is closed to new replies.