• Resolved sparkupart

    (@sparkupart)


    Hi,

    If my site is installed in a sub-folder for example ‘abc.com/my‘, then in the CloudFront setup on AWS:

    Should I then put ‘/my’ in the origin path?

    Should I add ‘my’ in the behaviour path pattern such that ‘/my/wp-content/*’?

    Thanks,

    Sachin

    • This topic was modified 1 year, 9 months ago by sparkupart.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter sparkupart

    (@sparkupart)

    The site in the sub-directory is broken when I activate the CloudFont CDN with this plugin. There are two origins, S3 bucket and mysite.com. The S3 bucket is for images and loads from the CloudFront correctly using Offload media lite plugin. But when I activate this plugin to load css, js, etc. the site gets broken. Not sure what’s going on.

    Thread Starter sparkupart

    (@sparkupart)

    Figured it out, it’s resolved.

    Hi, @sparkupart

    Can you let me know how you resolved the issue?

    I’m struggling with applying cloudfront to subdirectories.

    • This reply was modified 1 year, 9 months ago by seotaro.
    Thread Starter sparkupart

    (@sparkupart)

    Hi, @seotaro,

    I’m assuming your main domain is for example abc.com and your site/sites are like abc.com/site1, abc.com/site2.

    So if your site/sites in the subdirectory appears broken, then check ‘Behaviors’ in your AWS Cloudfront distribution, the ‘Path pattern’ should be set to like these:

    */wp-login.php	
    */wp-admin/*	
    */wp-content/*		
    */wp-includes/*		
    Default (*)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘When the site is in a sub-folder’ is closed to new replies.