Hey guys,
I have Clearfy Business and am loving it so far, it's permitted me to "cut the fat away" on my domains, exceptional work on this suite of plugins!
Unfortunately last night I ran into a small issue and I'm wondering if you or anyone from the community would be able to assist me.
I have the following setup for my domain's
https://www.domain.tld - cookie, servers all main content with the exception of the wp-content directory.
https://static.domain.tld - cookieless, serves content from the wp-content folder directly.
The issue I'm facing here is when I set Clearfy to minify CSS and JavaScript it's appending "wp-content" to static.domain.tld
e.g "https://static.domain.tld/wp-content/..."
This is an issue for me as the subdomain is already rooted in this folder so effectively it's looking for a non-existent folder and won't load any assets.
I'm currently using Autoptimise for minification e.t.c and had the same issue with their plugin, they gave me the following code that corrects the issue.
I was wondering if there was a similar piece of code that I could use for your plugin as ideally, id love to cut down on the number of plugins I have on my sites.
I have Clearfy Business and am loving it so far, it's permitted me to "cut the fat away" on my domains, exceptional work on this suite of plugins!
Unfortunately last night I ran into a small issue and I'm wondering if you or anyone from the community would be able to assist me.
I have the following setup for my domain's
https://www.domain.tld - cookie, servers all main content with the exception of the wp-content directory.
https://static.domain.tld - cookieless, serves content from the wp-content folder directly.
The issue I'm facing here is when I set Clearfy to minify CSS and JavaScript it's appending "wp-content" to static.domain.tld
e.g "https://static.domain.tld/wp-content/..."
This is an issue for me as the subdomain is already rooted in this folder so effectively it's looking for a non-existent folder and won't load any assets.
I'm currently using Autoptimise for minification e.t.c and had the same issue with their plugin, they gave me the following code that corrects the issue.
Code:
add_action('autoptimize_filter_css_fixurl_newurl','subdomain_magic');
function subdomain_magic($urlin)
{
return str_replace('wp-content/','',$urlin);
}