dip 133 Questions 69 Answers 1 Best Answer 53 Points View Profile 0 dip Teacher Asked: November 17, 2018 How To Use Cookie-Free Domains in WordPress? 0 How To Use Cookie-Free Domains WordPress Share Facebook 0 Answers Voted Oldest Recent Random WebGuru India 1 Question 118 Answers 2 Best Answers 133 Points View Profile WebGuru Pundit Added an answer on November 17, 2018 at 9:05 pm Use cookie-free domains in WordPress: 1.Create a subdomain such as static.example.com which is where you will deliver all your static files from. 2.Point your new subdomain to the /wp-content directory of your WordPress installation. For cPanel users, you will need to update the document root field from public_html/static to public_html/wp-content. 3.Edit wp-config.php file as below: define("WP_CONTENT_URL", "http://static.example.com");define("COOKIE_DOMAIN", "example.com"); 4.Run the following command in your SQL database. UPDATE wp_posts SET post_content = REPLACE(post_content,'example.com/wp-content/','static.example.com/') Your cookie domain and static content subdomain are set.Now you can begin delivering static content without the server setting an unnecessary cookie for static assets. 0 Reply Share Share Share on Facebook Share on Twitter Share on LinkedIn Share on WhatsApp Leave an answerCancel replyYou must login or register to add a new answer.