Moving images to cookiless domain
-
Hi,
I want to move my images to a cookiless domain. I placed this into my functions file, however it seems to redirect all files within the upload directory. I don’t want the cache directory moved as it stores autogenerated css files…
Is there any way using some soft of “if statement” to keep the cache folder within the directory where it is?
Here is the code –
add_filter( ‘pre_option_upload_url_path’, ‘wpse_77960_upload_url’ );
function wpse_77960_upload_url() { return ‘https://images.mydomain.com’;; }
Thanks
- The topic ‘Moving images to cookiless domain’ is closed to new replies.