Support » Fixing WordPress » Cookie-free domains: define(“WP_CONTENT_URL” breaks Js

  • Hi all

    I’m working on optimizing our site. I’ve followed this guide: https://www.keycdn.com/support/how-to-use-cookie-free-domains for creating cookie-free domains.

    I’ve ensured the webforward is working correctly. Dispite of that, adding:

    define("WP_CONTENT_URL", "http://stuff.sporvejsmuseet.dk");
    define("COOKIE_DOMAIN", "www.sporvejsmuseet.dk");

    breaks Js or CSS accross the site. I’m thinking I might be doing something wrong. Perhaps because WordPress is located in a subdirectory. The webforward is already linked to the right path though.

    What could I be doing wrong?

    Thank you in advance!

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

Viewing 1 replies (of 1 total)
  • Thread Starter andreglud

    (@andreglud)

    Turns out it’s WP_CONTENT_URL thats causing the issue. How can I be sure the web redirect is working? I’m using Cloudflares proxy too. I’ve setup a web forward at One.com (our host) and exactly the same at Cloudflare.

    The subdomain links correctly but shows a blank page. Is it supposed to do that?

    • This reply was modified 2 years, 7 months ago by andreglud.
Viewing 1 replies (of 1 total)
  • The topic ‘Cookie-free domains: define(“WP_CONTENT_URL” breaks Js’ is closed to new replies.