host static content on sub domain

Full disclosure – i am in no way a coder – i have learnt what little i know from
google-fu, cut and paste and trial and error.

I’ve recently been trying to optimise our wordpress site. I’ve made good progress but the yslow report on gt metrix keeps flagging up moving static content to a cookie free domain.

I dived into google to learn more and came to this:

1) set up cookie free subdomain on hosting – DONE.

2) Add this (but with our domain) to to wp-config:
“define(“WP_CONTENT_URL”, “”);
define(“COOKIE_DOMAIN”, “”);”

3) final step was to add/run this command (below) in mysql (this is where my skills run out. As a result I check with our host (fasthosts) as to whether running the command would break anything – they came back saying their engineers were not sure and they felt it was a wordpress enquiry and not a hosting enquiry?

So does anyone know if i add the following command to msql will it break anything?

UPDATE wp_posts SET post_content = REPLACE(post_content,’’,’’)

Many thanks in advance if you are able to advise 🙂

  • This topic was modified 4 days, 16 hours ago by Yui.
  • This topic was modified 4 days, 13 hours ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic

Source link