• I have installed wordpress multi site and I have created 3 sites like below

    
    https://examle.com/blog1
    https://examle.com/blog2
    https://examle.com/blog3
    

    I have configured CDN using Amazon CloudFront and my asset URL like below

    
    https://asset1.com/
    

    Below is the upload image. Its working fine.

    
    https://examle.com/blog1/wp-content/uploads/sites/1/2018/07/nikon1-534x462.jpg
    https://examle.com/blog2/wp-content/uploads/sites/2/2018/07/nikon1-534x462.jpg
    https://examle.com/blog3/wp-content/uploads/sites/3/2018/07/nikon1-534x462.jpg
    

    Below is the Correct CDN URL

    
    https://asset1.com/wp-content/uploads/sites/1/2018/07/nikon1-534x462.jpg
    

    But in website its showing asset URL like below.

    
    https://asset1.com/blog1/wp-content/uploads/sites/1/2018/07/nikon1-534x462.jpg
    https://asset1.com/blog2/wp-content/uploads/sites/2/2018/07/nikon1-534x462.jpg
    https://asset1.com/blog3/wp-content/uploads/sites/3/2018/07/nikon1-534x462.jpg
    

    So, Please help me how can i remove “blog1”, “blog2”, “blog3” from asset URL.

    Thanks,
    Jay

Viewing 1 replies (of 1 total)
  • bgdstr

    (@bogdanstratulat)

    Please note that the behavior that you are describing is expected and correct. Removing the /blog1 subdir as you can see don’t require anything and works out of the box, but subdomain requires separate CDN host for each domain since CDN have to take it from different origin domains. They have to switch on “separate config for each blog” option first and configure cdn for each blog. If you have any other questions, please feel free to ask.

Viewing 1 replies (of 1 total)

The topic ‘Mutisite Sub Directory W3TC Plugin CDN URL Issue’ is closed to new replies.