• So I’m using a plugin that blocks default directories (/wp-includes, /wp-content/uploads, etc) and moves them to a new link (/dependencies, /media, etc). Unfortunately, after testing out AWS CDN, it appears that it uses the default directories and those default directories, as I said before, are blocked. This causes an issue where most of the files report an error 404. Is there any way I can fix this or will I have to unblock the default directories?

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author luckychingi

    (@luckychingi)

    Hello @animalthegamer

    The plugin just replaces the communistmanifesto.ml to cloudfront provided domain, it does not check the names of the sub folders (wp-admin, wp-content, media, etc)

    Can you share the cloudfront domain name?

    Thread Starter AnimalTheGamer

    (@animalthegamer)

    The cloudfront domain name is https://d3he7yimub5m6g.cloudfront.net

    Plugin Author luckychingi

    (@luckychingi)

    Seems like the links works fine

    https://d3he7yimub5m6g.cloudfront.net/media/2021/09/rblxyes.webp
    
    https://d3he7yimub5m6g.cloudfront.net/googlea_local/assets/js/detect-ad-block.js
    
    https://d3he7yimub5m6g.cloudfront.net/dependencies/css/dist/block-library/style.min.css

    Can you share the screenshot of the page and the google dev tools with error?

    Are you using Cloudflare too?

    Thread Starter AnimalTheGamer

    (@animalthegamer)

    Yes, when you manually enter the correct path after the CloudFront domain, the file is accessible. But when I active the CDN, it uses the default directories which breaks my site. So it’s not an issue with CloudFront not having the file accessible through the correct path, it’s that the CDN uses the default WordPress directories when accessing my site via my domain (communistmanifesto.ml).

    Console Errors
    Look of the site with CDN activated
    Also, yes, I am using CloudFlare.

    Plugin Author luckychingi

    (@luckychingi)

    What plugin are you using to change the names of the default folders?
    I’ll try to replicate on my website.

    Thread Starter AnimalTheGamer

    (@animalthegamer)

    Plugin Author luckychingi

    (@luckychingi)

    Thanks
    Unfortunately the free version of this plugin does not support nginx web server.

    I will have to setup an Apache server to test

    Will revert after I am able to test with Apache server.

    Thread Starter AnimalTheGamer

    (@animalthegamer)

    Any update?

    Plugin Author luckychingi

    (@luckychingi)

    @animalthegamer ,
    sorry not yet, busy with ongoing projects.

    Plugin Author luckychingi

    (@luckychingi)

    @animalthegamer

    On my test site, after I activate CDN, the wp hide folder names get overwritten by the default names.

    The plugin would have to be updated to accommodate the custom folders and most likely will be introduced in the future release.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘AWS CDN + WP Hide?’ is closed to new replies.