• Resolved anonymized-14293447

    (@anonymized-14293447)


    I am following basic tutorials to set a cookie-free domain but the site eliminates many graphics/icons (even in backend).
    1) I crated a subdomain with root directory /public_html/wp-content
    2) added code in wp-config:
    define("WP_CONTENT_URL", "https://static.mydomain.com");define("COOKIE_DOMAIN", "mydomain.com");
    3) executed query in database:
    UPDATE wp_posts SET post_content = REPLACE(post_content,'mydomain.com/wp-content/','static.mydomain.com/')

    What am I missing? Also, how could I revert step nr. 3 if I want to delete the subdomain created and drop this issue?

    • This topic was modified 4 years, 9 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter anonymized-14293447

    (@anonymized-14293447)

    …I read that is possible to create a subdomain that acts as a self-hosted CDN. Is it the same as cookie-free domain or something different? However, I’m stuck with step (3) above… any help?

    Thread Starter anonymized-14293447

    (@anonymized-14293447)

    in order to un-execute the quesry above and delete this failed cookie free subdomain, could I use this?

    UPDATE wp_posts SET post_content = REPLACE(post_content,'static.mydomain.com/','mydomain.com/wp-content/')

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘cookie-free domain fails’ is closed to new replies.