i’m testing on how i can manage to serve static content from a subdomain.
i managed that the site url is on
http://www.domain.com
i created a subdomain with
static.domain.com
on wp-config i setup :
define("WP_CONTENT_URL", "http://static.domain.com");
define('WP_CONTENT_DIR', 'wp-content');
define("COOKIE_DOMAIN", "http://www.domain.com");
with uploads media everything is fine – but i thought that wp recognises the new wp-content and did it with themes and plugins the same way.
But wordpress could not find the themes.
Where is my fault ?
ok i got it:
you have to put in the absolute path to the content dir:
define("WP_CONTENT_URL", "http://static.domain.com");
define('WP_CONTENT_DIR', '/absolute path/wp-content');
define("COOKIE_DOMAIN", "http://www.domain.com");
now only some files from wp-includes are shown as “use cookie free domains”
YSlow rank D 65% it is better than F 0%
i’m working on it.
Hi,
Yea, that is something WordPress reacts really strange to that.
It is a really nice solution ( some hostings do not recognize that BTW )
I guess I can close it, it was a ” self service ” :D
Best regards,
Basilis