New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
BunnyCDN with Wordpress
I created a Pull Zone for my Wordpress website. Since Wordpress has JS/CSS files in 2 different folders - wp-content and wp-includes, I used the link to my website (https://www.mywebsite.com) as the original URL in BunnyCDN pull zone. Now, the problem is BunnyCDN pull zone "mywebsite.b-cdn.net" has become a copy of my website i.e. all pages of "https://www.mywebsite.com" can be accessed from "mywebsite.b-cdn.net".
Google will definitely not like this. I tried to redirect "mywebsite.b-cdn.net" to "https://www.mywebsite.com" using .htaccess, but it did not work.
Can someone help me to fix this issue?
Comments
Go to your zone and under the Security tab, enable the "Block root path access".
Thanks a lot. It worked.
to avoid any issues, the BunnyCDN has a module for WordPress, two clicks and everything can be setup correctly.
I have installed BunnyCDN plugin, but it does not have the option to block the access of the website using the pullzone.
You could also add edge rules,
if path is */
redirect to https://mydomain.com{{path}}
@BunnySpeed