Title: CDN mapping issue
Last modified: March 6, 2025

---

# CDN mapping issue

 *  Resolved [rashidavc18](https://wordpress.org/support/users/rashidavc18/)
 * (@rashidavc18)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/cdn-mapping-issue/)
 * I am using hide my wp and light speed cache plugin.
 * I have enable cdn mapping in lightspeed cache and all static files are loaded
   from my cloudfront cdn.
   It was loading fine with all cache settings.After this1)
   I have given custom paths for plugins and themesasPlugins – modulesthemes -templates2)
   I have added my cdn url in cdn mapping option [https://my-cloudfront-id.cloudfront.net](https://my-cloudfront-id.cloudfront.net)
   Same as listed below
 * Add New CDN URL
 * Go to **WP Ghost > Mapping > CDN** section.
 * If your CDN domain is not listed, 
   **enter the CDN domain** you’re using.Click
   the **Save** button to apply the changes.But nothing changedThe old cdn url is
   still loaded .The changes by hide my ghost is not appliedWhen i am adding [my-cloudfront-id.cloudfront.net](http://my-cloudfront-id.cloudfront.net)(
   without https// the** renaming** is correct but i am getting Failed to load resource:
   net::ERR_BLOCKED_BY_ORB for the new mapped url)
 * [https://my-cloudfront-id.cloudfront.net](https://your-cloudfront-id.cloudfront.net)
   [/wp-includes/js/jquery/jquery.min.js](https://d3gzkp50wx5u1r.cloudfront.net/wp-includes/js/jquery/jquery.min.js)(
   actual file bath is loading but custom mapped file path [https://my-cloudfront-id.cloudfront.net/lib/js/jquery/jquery.min.js](https://d3gzkp50wx5u1r.cloudfront.net/lib/js/jquery/jquery.min.js)
 * is showing access denied error
 * This XML file does not appear to have any style information associated with it.
   The document tree is shown below.
 * <Error>
 * <Code>AccessDenied</Code>
 * <Message>Access Denied</Message>
 * </Error>
   Same way all new mapped cdn urls are not loading
 * Please help me solve the issue. Is there any thing i should do to make this work
   
   Thank you[
    -  This topic was modified 1 year, 3 months ago by [rashidavc18](https://wordpress.org/support/users/rashidavc18/).
    -  This topic was modified 1 year, 3 months ago by [rashidavc18](https://wordpress.org/support/users/rashidavc18/).
    -  This topic was modified 1 year, 3 months ago by [rashidavc18](https://wordpress.org/support/users/rashidavc18/).

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Support [Peter](https://wordpress.org/support/users/petersquirrly/)
 * (@petersquirrly)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/cdn-mapping-issue/#post-18347669)
 * 👋Hi Rashida,
 * Thank you for your question.
 * It looks like this is something you need to check with CloudFront.
 * Possibly set Invalidation to the cache, but CloudFront should make an image to
   the site on custom paths.
 * Also, you can put in LiteSpeed ​​> CDN custom paths from WP Ghost, but it should
   work without this setting. [Please check this screenshot](https://drive.google.com/file/d/1JtG6jWGjwUm0trsLYePVoUuzGB992DTh/view?usp=sharing).
 *  Thread Starter [rashidavc18](https://wordpress.org/support/users/rashidavc18/)
 * (@rashidavc18)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/cdn-mapping-issue/#post-18347955)
 * i have put the custom paths already.But this didn’t worked.
   Please let me know
   what i should look at my cloud front or s3.Thank you
 *  Plugin Support [Peter](https://wordpress.org/support/users/petersquirrly/)
 * (@petersquirrly)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/cdn-mapping-issue/#post-18348418)
 * CSS/JS and Images should be added by S3 with the new paths by the plugin that
   puts media on S3.
 * Unfortunately, our hands are tied as we can’t do anything fromthe WP Ghost plugin.
 * Check the plugin that puts media on Amazon S3 and ask the author for a solution.
 *  Thread Starter [rashidavc18](https://wordpress.org/support/users/rashidavc18/)
 * (@rashidavc18)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/cdn-mapping-issue/#post-18351698)
 * Actually i am manually uploading statics files like css,js,media to the s3 bucket
   and uses cloudfront cdn url. .And the cdn mapping is done using lightspeed cache
   plugin.Every thing works fine until the cdn mapping in hide my ghost plugin is
   added.
   This should be working fine without any modification in cloudfront right
   orSince CloudFront doesn’t know about the path rewrites, i need to create a behavior
   in CloudFront that **maps** `lib/` to `wp-includes/` I s this how it should be
   working right?Can you please suggest me.
 *  Plugin Support [Peter](https://wordpress.org/support/users/petersquirrly/)
 * (@petersquirrly)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/cdn-mapping-issue/#post-18352799)
 * Unfortunately, it works in a different way. In our documentation in CDN Mapping
   it’s stated that we used to add custom domains (different from the one in Settings
   > General > Site URL) in the list to change the path name in the frontend.
 * NO physical directory changes are made on the site, these are made by the CDN
   server. What you can do is test LiteSpeed ​​Cache with [https://www.quic.cloud/](https://www.quic.cloud/)
   which works together and automatically adds the modified paths on the CDN.
 * Solutions:
    1. Look how to rewrite paths in S3 or CloudFront from default WordPress Paths to
       Custom Paths.
    2. Do not customize in WP Ghost what is related to WordPress Core Security and 
       use the other functions that are not related to modifying paths.
 * Recommendations:
    1. Use LiteSpeed ​​Cache with Quick.cloud or KeyCDN
    2. Use a hosting with CDN included like Hostinger or BlueHost

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘CDN mapping issue’ is closed to new replies.

 * ![](https://ps.w.org/hide-my-wp/assets/icon-256x256.png?rev=3217792)
 * [WP Ghost (Hide My WP Ghost) - Security & Firewall](https://wordpress.org/plugins/hide-my-wp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/hide-my-wp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/hide-my-wp/)
 * [Active Topics](https://wordpress.org/support/plugin/hide-my-wp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/hide-my-wp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/hide-my-wp/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Peter](https://wordpress.org/support/users/petersquirrly/)
 * Last activity: [1 year, 3 months ago](https://wordpress.org/support/topic/cdn-mapping-issue/#post-18352799)
 * Status: resolved